summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabian Frederick <fabf@skynet.be>2014-06-05 01:10:40 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2014-06-05 01:54:11 +0200
commit6e6870d4fd19e25332e7d975604497c8568949d9 (patch)
treeb509e57a21956f979e40c1fcb04dbf9f54cde354
parentfs/hugetlbfs/inode.c: use static const for dentry_operations (diff)
downloadlinux-6e6870d4fd19e25332e7d975604497c8568949d9.tar.xz
linux-6e6870d4fd19e25332e7d975604497c8568949d9.zip
fs/hugetlbfs/inode.c: remove null test before kfree
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>
-rw-r--r--fs/hugetlbfs/inode.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/hugetlbfs/inode.c b/fs/hugetlbfs/inode.c
index cc81d25b2812..1e2872b25343 100644
--- a/fs/hugetlbfs/inode.c
+++ b/fs/hugetlbfs/inode.c
@@ -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;
}