1
0
Fork 0

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: Alexey Dobriyan <adobriyan@sw.ru>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
hifive-unleashed-5.1
Alexey Dobriyan 2008-02-08 04:18:28 -08:00 committed by Linus Torvalds
parent 76df0c25d0
commit fd2cbe4888
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}