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

Commit b6861d0a authored by Fabian Frederick's avatar Fabian Frederick Committed by Brian Norris
Browse files

fs/jffs2/acl.c: remove null test before kfree



Fix checkpatch warning:
WARNING: kfree(NULL) is safe this check is probably not required

Cc: David Woodhouse <dwmw2@infradead.org>
Cc: linux-mtd@lists.infradead.org
Signed-off-by: default avatarFabian Frederick <fabf@skynet.be>
Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
parent da90c4ec
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -202,7 +202,6 @@ struct posix_acl *jffs2_get_acl(struct inode *inode, int type)
	} else {
		acl = ERR_PTR(rc);
	}
	if (value)
	kfree(value);
	if (!IS_ERR(acl))
		set_cached_acl(inode, type, acl);