summaryrefslogtreecommitdiff
path: root/fs/hugetlbfs
diff options
context:
space:
mode:
authorFabian Frederick <fabf@skynet.be>2014-06-04 16:10:40 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2014-06-04 16:54:11 -0700
commit6e6870d4fd19e25332e7d975604497c8568949d9 (patch)
treeb509e57a21956f979e40c1fcb04dbf9f54cde354 /fs/hugetlbfs
parentbe1d2cf5e36b1de3c8e17428885dcad4ca929886 (diff)
downloadlwn-6e6870d4fd19e25332e7d975604497c8568949d9.tar.gz
lwn-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>
Diffstat (limited to 'fs/hugetlbfs')
-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;
}