diff options
author | Gao Guanhua <B22826@freescale.com> | 2009-04-14 14:37:35 +0800 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2009-04-28 00:35:27 +0200 |
commit | 351f40caf2f7806b2cefb93e077ea619b9f684e8 (patch) | |
tree | 914754292e79a4c5947e0cc192743cc30ace5c84 /common/cmd_ext2.c | |
parent | 05f474c4d0469bebc0bb05df60a39dc7fdf28e62 (diff) | |
download | u-boot-imx-351f40caf2f7806b2cefb93e077ea619b9f684e8.zip u-boot-imx-351f40caf2f7806b2cefb93e077ea619b9f684e8.tar.gz u-boot-imx-351f40caf2f7806b2cefb93e077ea619b9f684e8.tar.bz2 |
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>
Diffstat (limited to 'common/cmd_ext2.c')
-rw-r--r-- | common/cmd_ext2.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/common/cmd_ext2.c b/common/cmd_ext2.c index c2dcc64..8e316c7 100644 --- a/common/cmd_ext2.c +++ b/common/cmd_ext2.c @@ -129,7 +129,8 @@ int do_ext2load (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) char *filename = NULL; char *ep; int dev, part = 1; - ulong addr = 0, part_length, filelen; + ulong addr = 0, part_length; + int filelen; disk_partition_t info; block_dev_desc_t *dev_desc = NULL; char buf [12]; |