projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.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
|
blame
|
history
diff --git
a/fs/proc/generic.c
b/fs/proc/generic.c
index 1c91eed26451610ed85e695bec15020047ed93a8..e37ea3e53de860a443e41088b1cd70a0cf69d702 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);
}