diff options
-rw-r--r-- | fs/jffs2/build.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/fs/jffs2/build.c b/fs/jffs2/build.c index f4a47a3b2a01..f2cf562ebd2a 100644 --- a/fs/jffs2/build.c +++ b/fs/jffs2/build.c | |||
@@ -7,7 +7,7 @@ | |||
7 | * | 7 | * |
8 | * For licensing information, see the file 'LICENCE' in this directory. | 8 | * For licensing information, see the file 'LICENCE' in this directory. |
9 | * | 9 | * |
10 | * $Id: build.c,v 1.78 2005/09/07 08:34:54 havasi Exp $ | 10 | * $Id: build.c,v 1.79 2005/09/07 11:21:57 havasi Exp $ |
11 | * | 11 | * |
12 | */ | 12 | */ |
13 | 13 | ||
@@ -313,6 +313,7 @@ static void jffs2_calc_trigger_levels(struct jffs2_sb_info *c) | |||
313 | 313 | ||
314 | int jffs2_do_mount_fs(struct jffs2_sb_info *c) | 314 | int jffs2_do_mount_fs(struct jffs2_sb_info *c) |
315 | { | 315 | { |
316 | int ret; | ||
316 | int i; | 317 | int i; |
317 | 318 | ||
318 | c->free_size = c->flash_size; | 319 | c->free_size = c->flash_size; |
@@ -352,8 +353,9 @@ int jffs2_do_mount_fs(struct jffs2_sb_info *c) | |||
352 | c->highest_ino = 1; | 353 | c->highest_ino = 1; |
353 | c->summary = NULL; | 354 | c->summary = NULL; |
354 | 355 | ||
355 | if (jffs2_sum_init(c)) | 356 | ret = jffs2_sum_init(c); |
356 | return -ENOMEM; | 357 | if (ret) |
358 | return ret; | ||
357 | 359 | ||
358 | if (jffs2_build_filesystem(c)) { | 360 | if (jffs2_build_filesystem(c)) { |
359 | D1(printk(KERN_DEBUG "build_fs failed\n")); | 361 | D1(printk(KERN_DEBUG "build_fs failed\n")); |