From: Alexey Dobriyan Date: Fri, 8 Feb 2008 12:18:28 +0000 (-0800) Subject: proc: remove useless check on symlink removal X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fd2cbe48883a01f710c2a639877e3b3e4eba6e59;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/proc/generic.c b/fs/proc/generic.c index 1c91eed2645..e37ea3e53de 100644 --- a/fs/proc/generic.c +++ b/fs/proc/generic.c @@ -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); }