From: Fabian Frederick Date: Wed, 4 Jun 2014 23:10:40 +0000 (-0700) Subject: fs/hugetlbfs/inode.c: remove null test before kfree X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6e6870d4fd19e25332e7d975604497c8568949d9;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- 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; }