Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=fd2cbe48883a01f710c2a639877e3b3e4eba6e59 Commit: fd2cbe48883a01f710c2a639877e3b3e4eba6e59 Parent: 76df0c25d0c34eba9fbb8a44106ed096553ba0e8 Author: Alexey Dobriyan <[EMAIL PROTECTED]> AuthorDate: Fri Feb 8 04:18:28 2008 -0800 Committer: Linus Torvalds <[EMAIL PROTECTED]> CommitDate: Fri Feb 8 09:22:23 2008 -0800
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 <[EMAIL PROTECTED]> Signed-off-by: Andrew Morton <[EMAIL PROTECTED]> Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]> --- fs/proc/generic.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/fs/proc/generic.c b/fs/proc/generic.c index 1c91eed..e37ea3e 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); } - To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html