]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
fs/hugetlbfs/inode.c: remove null test before kfree
authorFabian Frederick <fabf@skynet.be>
Thu, 22 May 2014 00:43:25 +0000 (10:43 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 22 May 2014 00:43:25 +0000 (10:43 +1000)
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>
fs/hugetlbfs/inode.c

index 62e4f9d2a2e8eb1356cc0605b44dc3b46e96fdaf..93fc5314caaafee5fea0a1edda05d148f3e6b677 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;
 }