diff options
author | wdenk <wdenk> | 2004-07-01 16:30:44 +0000 |
---|---|---|
committer | wdenk <wdenk> | 2004-07-01 16:30:44 +0000 |
commit | 39539887ea7dc298c98ac1fddd38551dfa335120 (patch) | |
tree | 31e3bc0bd93cead0c977b8fd26ede7d06f70e0a1 /common/cmd_jffs2.c | |
parent | e94d2cd9d1dc0f58b18e7c31fc9345129b1a44fb (diff) | |
download | u-boot-39539887ea7dc298c98ac1fddd38551dfa335120.tar.gz u-boot-39539887ea7dc298c98ac1fddd38551dfa335120.tar.xz u-boot-39539887ea7dc298c98ac1fddd38551dfa335120.zip |
* Code cleanup (ARM mostly)
* Patch by Curt Brune, 17 May 2004:
- Add support for Samsung S3C4510B CPU (ARM7tdmi based SoC)
- Add support for ESPD-Inc. EVB4510 Board
Diffstat (limited to 'common/cmd_jffs2.c')
-rw-r--r-- | common/cmd_jffs2.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/common/cmd_jffs2.c b/common/cmd_jffs2.c index 27e7273057..e49b74d615 100644 --- a/common/cmd_jffs2.c +++ b/common/cmd_jffs2.c @@ -122,21 +122,19 @@ jffs2_part_info(int part_num) int do_jffs2_fsload(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) { - struct part_info* jffs2_part_info(int); - int jffs2_1pass_load(char *, struct part_info *,const char *); - char *fsname; - + struct part_info* jffs2_part_info(int); + int jffs2_1pass_load(char *, struct part_info *,const char *); + char *fsname; char *filename; + int size; + struct part_info *part; + ulong offset = load_addr; /* pre-set Boot file name */ if ((filename = getenv("bootfile")) == NULL) { filename = "uImage"; } - ulong offset = load_addr; - int size; - struct part_info *part; - if (argc == 2) { filename = argv[1]; } |