Skip to content
Snippets Groups Projects
Commit 351f40ca authored by Gao Guanhua's avatar Gao Guanhua Committed by Wolfgang Denk
Browse files

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: default avatarGao Guanhua <B22826@freescale.com>
Signed-off-by: default avatarDave Liu <daveliu@freescale.com>
parent 05f474c4
No related branches found
No related tags found
No related merge requests found
...@@ -129,7 +129,8 @@ int do_ext2load (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) ...@@ -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];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment