]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
proc: remove useless check on symlink removal
authorAlexey Dobriyan <adobriyan@sw.ru>
Fri, 8 Feb 2008 12:18:28 +0000 (04:18 -0800)
committerLinus 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

index 1c91eed26451610ed85e695bec15020047ed93a8..e37ea3e53de860a443e41088b1cd70a0cf69d702 100644 (file)
@@ -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);
 }