summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorwdenk <wdenk>2004-07-01 16:30:44 +0000
committerwdenk <wdenk>2004-07-01 16:30:44 +0000
commit39539887ea7dc298c98ac1fddd38551dfa335120 (patch)
tree31e3bc0bd93cead0c977b8fd26ede7d06f70e0a1 /common
parente94d2cd9d1dc0f58b18e7c31fc9345129b1a44fb (diff)
downloadu-boot-imx-39539887ea7dc298c98ac1fddd38551dfa335120.zip
u-boot-imx-39539887ea7dc298c98ac1fddd38551dfa335120.tar.gz
u-boot-imx-39539887ea7dc298c98ac1fddd38551dfa335120.tar.bz2
* 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')
-rw-r--r--common/cmd_jffs2.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/common/cmd_jffs2.c b/common/cmd_jffs2.c
index 27e7273..e49b74d 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];
}