Skip to content

Commit

Permalink
[JFFS2] Remove forgotten summary code
Browse files Browse the repository at this point in the history
Remove forgotten lines from jffs2_scan_eraseblock() which
were unnecessary and may cause problem in some environments.

Thanks to Alexander Belyakov <alexander.belyakov@intel.com>.

Signed-off-by: Ferenc Havasi <havasi@inf.u-szeged.hu>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
  • Loading branch information
Ferenc Havasi authored and David Woodhouse committed May 19, 2006
1 parent aef9ab4 commit 8e4482f
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions fs/jffs2/scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -365,23 +365,12 @@ static int jffs2_scan_eraseblock (struct jffs2_sb_info *c, struct jffs2_eraseblo
}

kfree(sm);

ofs = jeb->offset;
prevofs = jeb->offset - 1;
}

buf_ofs = jeb->offset;

if (!buf_size) {
buf_len = c->sector_size;

if (jffs2_sum_active()) {
/* must reread because of summary test */
err = jffs2_fill_scan_buf(c, buf, buf_ofs, buf_len);
if (err)
return err;
}

} else {
buf_len = EMPTY_SCAN_SIZE(c->sector_size);
err = jffs2_fill_scan_buf(c, buf, buf_ofs, buf_len);
Expand Down

0 comments on commit 8e4482f

Please sign in to comment.