summaryrefslogtreecommitdiff
path: root/common/cmd_jffs2.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/cmd_jffs2.c')
-rw-r--r--common/cmd_jffs2.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/common/cmd_jffs2.c b/common/cmd_jffs2.c
index 63fddf6..45713a3 100644
--- a/common/cmd_jffs2.c
+++ b/common/cmd_jffs2.c
@@ -175,10 +175,9 @@ do_jffs2_fsload(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
int
do_jffs2_ls(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
{
- struct part_info* jffs2_part_info(int);
- int jffs2_1pass_ls(struct part_info *,char *);
-
- char *filename = "/";
+ struct part_info* jffs2_part_info(int);
+ int jffs2_1pass_ls(struct part_info *,char *);
+ char *filename = "/";
int ret;
struct part_info *part;
@@ -235,11 +234,11 @@ do_jffs2_chpart(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
{
int tmp_part;
char str_part_num[3];
- struct part_info* jffs2_part_info(int);
+ struct part_info* jffs2_part_info(int);
- if (argc >= 2) {
+ if (argc >= 2) {
tmp_part = simple_strtoul(argv[1], NULL, 16);
- }else{
+ } else {
puts ("Need partition number in argument list\n");
return 0;