]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
fs/hugetlbfs/inode.c: remove null test before kfree
authorFabian Frederick <fabf@skynet.be>
Wed, 4 Jun 2014 23:10:40 +0000 (16:10 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 4 Jun 2014 23:54:11 +0000 (16:54 -0700)
Fix checkpatch warning:
WARNING: kfree(NULL) is safe this check is probably not required

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/hugetlbfs/inode.c

index cc81d25b2812b7096748b540fe222481f772fa9c..1e2872b25343f106df7a96d0b667e194dd070c54 100644 (file)
@@ -901,8 +901,7 @@ hugetlbfs_fill_super(struct super_block *sb, void *data, int silent)
                goto out_free;
        return 0;
 out_free:
-       if (sbinfo->spool)
-               kfree(sbinfo->spool);
+       kfree(sbinfo->spool);
        kfree(sbinfo);
        return -ENOMEM;
 }