]> err.no Git - linux-2.6/commitdiff
[JFFS2] Remove forgotten summary code
authorFerenc Havasi <havasi@inf.u-szeged.hu>
Fri, 19 May 2006 20:00:36 +0000 (21:00 +0100)
committerDavid Woodhouse <dwmw2@infradead.org>
Fri, 19 May 2006 20:00:36 +0000 (21:00 +0100)
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>
fs/jffs2/scan.c

index eca0996def6069f6805bc997d9b166b16d178911..352ada892f3ec24fce5180aaa1cd2d1415a3a4c4 100644 (file)
@@ -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);