projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9a87fe0
)
proc: just list_del() struct pde_opener
author
Alexey Dobriyan
<
[email protected]
>
Tue, 13 Dec 2016 00:45:14 +0000
(16:45 -0800)
committer
Linus Torvalds
<
[email protected]
>
Tue, 13 Dec 2016 02:55:09 +0000
(18:55 -0800)
list_del_init() is too much, structure will be freed in three lines
anyway.
Link:
http://lkml.kernel.org/r/20161029155313.GA1246@avx2
Signed-off-by: Alexey Dobriyan <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
fs/proc/inode.c
patch
|
blob
|
history
diff --git
a/fs/proc/inode.c
b/fs/proc/inode.c
index e69ebe648a34bd69b1a0242fbdb5bb737edee2e9..907265009b03b56a361a86412e8b59d8076c75bd 100644
(file)
--- a/
fs/proc/inode.c
+++ b/
fs/proc/inode.c
@@
-152,7
+152,7
@@
static void close_pdeo(struct proc_dir_entry *pde, struct pde_opener *pdeo)
file = pdeo->file;
pde->proc_fops->release(file_inode(file), file);
spin_lock(&pde->pde_unload_lock);
- list_del
_init
(&pdeo->lh);
+ list_del(&pdeo->lh);
if (pdeo->c)
complete(pdeo->c);
kfree(pdeo);