aboutsummaryrefslogtreecommitdiffstats
path: root/fs/hugetlbfs
diff options
context:
space:
mode:
authorFabian Frederick <fabf@skynet.be>2014-06-04 19:10:40 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2014-06-04 19:54:11 -0400
commit6e6870d4fd19e25332e7d975604497c8568949d9 (patch)
treeb509e57a21956f979e40c1fcb04dbf9f54cde354 /fs/hugetlbfs
parentbe1d2cf5e36b1de3c8e17428885dcad4ca929886 (diff)
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)
901 goto out_free; 901 goto out_free;
902 return 0; 902 return 0;
903out_free: 903out_free:
904 if (sbinfo->spool) 904 kfree(sbinfo->spool);
905 kfree(sbinfo->spool);
906 kfree(sbinfo); 905 kfree(sbinfo);
907 return -ENOMEM; 906 return -ENOMEM;
908} 907}