Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6e6870d4 authored by Fabian Frederick's avatar Fabian Frederick Committed by Linus Torvalds
Browse files

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: default avatarFabian Frederick <fabf@skynet.be>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent be1d2cf5
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -901,7 +901,6 @@ 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);
	return -ENOMEM;