diff options
author | Alexey Dobriyan <adobriyan@sw.ru> | 2008-02-08 07:18:28 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-08 12:22:23 -0500 |
commit | fd2cbe48883a01f710c2a639877e3b3e4eba6e59 (patch) | |
tree | d358e9de25cb8abf06b0f6fb334d6121da19ae07 /fs/proc | |
parent | 76df0c25d0c34eba9fbb8a44106ed096553ba0e8 (diff) |
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>
Diffstat (limited to 'fs/proc')
-rw-r--r-- | 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 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) | |||
673 | 673 | ||
674 | release_inode_number(ino); | 674 | release_inode_number(ino); |
675 | 675 | ||
676 | if (S_ISLNK(de->mode) && de->data) | 676 | if (S_ISLNK(de->mode)) |
677 | kfree(de->data); | 677 | kfree(de->data); |
678 | kfree(de); | 678 | kfree(de); |
679 | } | 679 | } |