mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2025-12-10 07:44:53 +01:00
fs: Fix the wrong type of var
The filelen should be signed type, not unsigned type. otherwise, The condition as below never take. if (filelen < 0) Signed-off-by: Gao Guanhua <B22826@freescale.com> Signed-off-by: Dave Liu <daveliu@freescale.com>
This commit is contained in:
parent
05f474c4d0
commit
351f40caf2
1 changed files with 2 additions and 1 deletions
|
|
@ -129,7 +129,8 @@ int do_ext2load (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
|
||||||
char *filename = NULL;
|
char *filename = NULL;
|
||||||
char *ep;
|
char *ep;
|
||||||
int dev, part = 1;
|
int dev, part = 1;
|
||||||
ulong addr = 0, part_length, filelen;
|
ulong addr = 0, part_length;
|
||||||
|
int filelen;
|
||||||
disk_partition_t info;
|
disk_partition_t info;
|
||||||
block_dev_desc_t *dev_desc = NULL;
|
block_dev_desc_t *dev_desc = NULL;
|
||||||
char buf [12];
|
char buf [12];
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue