]> err.no Git - linux-2.6/blobdiff - fs/jffs2/wbuf.c
Merge master.kernel.org:/pub/scm/linux/kernel/git/tglx/mtd-2.6
[linux-2.6] / fs / jffs2 / wbuf.c
index 242cd53a970c5bf96f561d4752813cb66295de21..4cebf0e57c465bbf130b7077ea667ded3bac0b08 100644 (file)
@@ -326,8 +326,7 @@ static void jffs2_wbuf_recover(struct jffs2_sb_info *c)
                c->wbuf_ofs = ofs + towrite;
                memmove(c->wbuf, rewrite_buf + towrite, c->wbuf_len);
                /* Don't muck about with c->wbuf_inodes. False positives are harmless. */
-               if (buf)
-                       kfree(buf);
+               kfree(buf);
        } else {
                /* OK, now we're left with the dregs in whichever buffer we're using */
                if (buf) {