From: Fabian Frederick Date: Mon, 16 Jun 2014 17:58:07 +0000 (+0200) Subject: fs/jffs2/acl.c: remove null test before kfree X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=b6861d0a15d6628a5b161f014c542d03577e4c26;p=linux-beck.git 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 Cc: linux-mtd@lists.infradead.org Signed-off-by: Fabian Frederick Signed-off-by: Brian Norris --- diff --git a/fs/jffs2/acl.c b/fs/jffs2/acl.c index 009ec0b5993d..2f7a3c090489 100644 --- a/fs/jffs2/acl.c +++ b/fs/jffs2/acl.c @@ -202,8 +202,7 @@ struct posix_acl *jffs2_get_acl(struct inode *inode, int type) } else { acl = ERR_PTR(rc); } - if (value) - kfree(value); + kfree(value); if (!IS_ERR(acl)) set_cached_acl(inode, type, acl); return acl;