diff options
author | Ferenc Havasi <havasi@inf.u-szeged.hu> | 2006-05-19 22:00:36 +0200 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2006-05-19 22:00:36 +0200 |
commit | 8e4482fba21d15da99f39a13396d3361e810d199 (patch) | |
tree | 8dbfaedd9c0326040e8ac7e98b4d2c297b9151a0 /fs/jffs2/scan.c | |
parent | [JFFS2] Support new device nodes (diff) | |
download | linux-8e4482fba21d15da99f39a13396d3361e810d199.tar.xz linux-8e4482fba21d15da99f39a13396d3361e810d199.zip |
[JFFS2] Remove forgotten summary code
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>
Diffstat (limited to 'fs/jffs2/scan.c')
-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 } 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); |