Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 16c863bb authored by fangwei's avatar fangwei Committed by Brian Norris
Browse files

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: default avatarWei Fang <fangwei1@huawei.com>
Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
parent ecb43e0a
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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;
	}