projects
/
kernel
/
kernel-generic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
76df0c2
)
proc: remove useless check on symlink removal
author
Alexey Dobriyan
<adobriyan@sw.ru>
Fri, 8 Feb 2008 12:18:28 +0000
(
04:18
-0800)
committer
Linus Torvalds
<torvalds@woody.linux-foundation.org>
Fri, 8 Feb 2008 17:22:23 +0000
(09:22 -0800)
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>
fs/proc/generic.c
patch
|
blob
|
history
diff --git
a/fs/proc/generic.c
b/fs/proc/generic.c
index
1c91eed
..
e37ea3e
100644
(file)
--- 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);
}