projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be1d2cf
)
fs/hugetlbfs/inode.c: remove null test before kfree
author
Fabian Frederick
<fabf@skynet.be>
Wed, 4 Jun 2014 23:10:40 +0000
(16:10 -0700)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Wed, 4 Jun 2014 23:54:11 +0000
(16:54 -0700)
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>
fs/hugetlbfs/inode.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/hugetlbfs/inode.c
b/fs/hugetlbfs/inode.c
index cc81d25b2812b7096748b540fe222481f772fa9c..1e2872b25343f106df7a96d0b667e194dd070c54 100644
(file)
--- 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;
}