fs/jffs2/acl.c: remove null test before kfree
[linux-2.6-microblaze.git] / fs / jffs2 / acl.c
index 009ec0b..2f7a3c0 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;