From: Dave Liu Date: Tue, 14 Apr 2009 14:37:35 +0800 Subject: [U-Boot] [PATCH] fs: Fix the wrong type of var Message-ID: <1239691055-8360-1-git-send-email-daveliu@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de From: Gao Guanhua The filelen should be signed type, not unsigned type. otherwise, The condition as below never take. if (filelen < 0) Signed-off-by: Gao Guanhua Signed-off-by: Dave Liu --- 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]; -- 1.5.4