hugetlbfs: hugetlbfs_fill_super(): remove kfree() redundant null check
PATCH 1/1 hugetlbfs: hugetlbfs_fill_super(): remove kfree() redundant null check
smatch analysis:
fs/hugetlbfs/inode.c:883 hugetlbfs_fill_super() info: redundant null check on sbinfo->spool calling kfree()
Cc Nadia Yvette Chambers <[email protected]>
Signed-off-by Tim Gardner <[email protected]>
--- fs/hugetlbfs/inode.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
fs/hugetlbfs/inode.c +1 -2
@@ -879,8 +879,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 ; }
Signature · 1 line
1.7.9.5
Quoted 29 lines · Tim Gardner
smatch analysis:
fs/hugetlbfs/inode.c:883hugetlbfs_fill_super()info: redundant null check onsbinfo->spoolcallingkfree()Cc Nadia Yvette Chambers <[email protected]>Signed-off-by Tim Gardner <[email protected]>--- fs/hugetlbfs/inode.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)fs/hugetlbfs/inode.c +1
-2@@ -879,8 +879,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 ;}
--
1.7.9.5