u-boot/fs/ext4
Lokesh Vutla 509b498a50 ext4: Fix comparision of unsigned expression with < 0
In file ext4fs.c funtion ext4fs_read_file() compares an
unsigned expression with < 0 like below

	lbaint_t blknr;
	blknr = read_allocated_block(&(node->inode), i);
	if (blknr < 0)
		return -1;

blknr is of type ulong/uint64_t. read_allocated_block() returns
long int. So comparing blknr with < 0 will always be false. Instead
declare blknr as long int.

Similarly ext4/dev.c does a similar comparison. Drop the redundant
comparison.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
2017-04-27 16:49:09 -04:00
..
crc16.c ext4fs write support 2012-08-09 23:48:02 +02:00
crc16.h ext4fs write support 2012-08-09 23:48:02 +02:00
dev.c ext4: Fix comparision of unsigned expression with < 0 2017-04-27 16:49:09 -04:00
ext4_common.c fs/ext4: Initialize group descriptor size for revision level 0 filesystems 2016-12-27 11:24:18 -05:00
ext4_common.h treewide: replace #include <asm/errno.h> with <linux/errno.h> 2016-09-23 17:55:42 -04:00
ext4_journal.c ext4: Fix memory leak of journal buffer if block is updated multiple times 2016-09-23 09:02:44 -04:00
ext4_journal.h ext4: fix endianess problems in ext4 write support 2016-09-23 09:02:04 -04:00
ext4_write.c ext4: Respect group descriptor size when adjusting free counts 2016-09-23 09:20:16 -04:00
ext4fs.c ext4: Fix comparision of unsigned expression with < 0 2017-04-27 16:49:09 -04:00
Kconfig kconfig: add blank Kconfig files 2014-09-24 18:30:28 -04:00
Makefile fs: descend into sub directories when it is necessary 2013-11-17 14:11:34 -05:00