diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/jffs2/scan.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/fs/jffs2/scan.c b/fs/jffs2/scan.c index eca0996def60..352ada892f3e 100644 --- a/fs/jffs2/scan.c +++ b/fs/jffs2/scan.c | |||
@@ -365,23 +365,12 @@ static int jffs2_scan_eraseblock (struct jffs2_sb_info *c, struct jffs2_eraseblo | |||
365 | } | 365 | } |
366 | 366 | ||
367 | kfree(sm); | 367 | kfree(sm); |
368 | |||
369 | ofs = jeb->offset; | ||
370 | prevofs = jeb->offset - 1; | ||
371 | } | 368 | } |
372 | 369 | ||
373 | buf_ofs = jeb->offset; | 370 | buf_ofs = jeb->offset; |
374 | 371 | ||
375 | if (!buf_size) { | 372 | if (!buf_size) { |
376 | buf_len = c->sector_size; | 373 | buf_len = c->sector_size; |
377 | |||
378 | if (jffs2_sum_active()) { | ||
379 | /* must reread because of summary test */ | ||
380 | err = jffs2_fill_scan_buf(c, buf, buf_ofs, buf_len); | ||
381 | if (err) | ||
382 | return err; | ||
383 | } | ||
384 | |||
385 | } else { | 374 | } else { |
386 | buf_len = EMPTY_SCAN_SIZE(c->sector_size); | 375 | buf_len = EMPTY_SCAN_SIZE(c->sector_size); |
387 | err = jffs2_fill_scan_buf(c, buf, buf_ofs, buf_len); | 376 | err = jffs2_fill_scan_buf(c, buf, buf_ofs, buf_len); |