Commit 06a0c417 authored by Alexey Dobriyan's avatar Alexey Dobriyan Committed by Linus Torvalds

proc: just list_del() struct pde_opener

list_del_init() is too much, structure will be freed in three lines
anyway.

Link: http://lkml.kernel.org/r/20161029155313.GA1246@avx2Signed-off-by: default avatarAlexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 9a87fe0d
...@@ -152,7 +152,7 @@ static void close_pdeo(struct proc_dir_entry *pde, struct pde_opener *pdeo) ...@@ -152,7 +152,7 @@ static void close_pdeo(struct proc_dir_entry *pde, struct pde_opener *pdeo)
file = pdeo->file; file = pdeo->file;
pde->proc_fops->release(file_inode(file), file); pde->proc_fops->release(file_inode(file), file);
spin_lock(&pde->pde_unload_lock); spin_lock(&pde->pde_unload_lock);
list_del_init(&pdeo->lh); list_del(&pdeo->lh);
if (pdeo->c) if (pdeo->c)
complete(pdeo->c); complete(pdeo->c);
kfree(pdeo); kfree(pdeo);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment