提交 fd2cbe48 编写于 作者: A Alexey Dobriyan 提交者: Linus Torvalds

proc: remove useless check on symlink removal

proc symlinks always have valid ->data containing destination of symlink.  No
need to check it on removal -- proc_symlink() already done it.
Signed-off-by: NAlexey Dobriyan <adobriyan@sw.ru>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 76df0c25
......@@ -673,7 +673,7 @@ void free_proc_entry(struct proc_dir_entry *de)
release_inode_number(ino);
if (S_ISLNK(de->mode) && de->data)
if (S_ISLNK(de->mode))
kfree(de->data);
kfree(de);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册