jffs2: remove unneeded kfree
PATCH RESEND 1/1 jffs2: remove unneeded kfree
c->oobbuf hasn't been kmalloced in jffs2_dataflash_setup, so there is no need to free it.
Signed-off-by Wei Fang <[email protected]>
--- fs/jffs2/wbuf.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-)
fs/jffs2/wbuf.c +0 -1
@@ -1274,7 +1274,6 @@ int jffs2_dataflash_setup(struct jffs2_sb_info *c) {#ifdef CONFIG_JFFS2_FS_WBUF_VERIFY c->wbuf_verify =kmalloc (c->wbuf_pagesize,GFP_KERNEL );if (!c->wbuf_verify) { -kfree (c->oobbuf);kfree (c->wbuf);return -ENOMEM ; }
Signature · 1 line
1.7.1
Brian Norris
AppliedQuoted 4 lines · Wei Fang
c->oobbufhasn't been kmalloced injffs2_dataflash_setup, so there is no need to free it.Signed-off-by Wei Fang <[email protected]>
Applied to l2-mtd.git