fs/jffs2/acl.c: remove null test before kfree
authorFabian Frederick <fabf@skynet.be>
Mon, 16 Jun 2014 17:58:07 +0000 (19:58 +0200)
committerBrian Norris <computersforpeace@gmail.com>
Wed, 2 Jul 2014 22:25:39 +0000 (15:25 -0700)
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: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
fs/jffs2/acl.c

index 009ec0b5993da879846ba7a733864116684026ca..2f7a3c09048999f4365c3e5612ffdf18e9c65d54 100644 (file)
@@ -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;
This page took 0.026216 seconds and 5 git commands to generate.