Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fd2cbe48 authored by Alexey Dobriyan's avatar Alexey Dobriyan Committed by Linus Torvalds
Browse files

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: default avatarAlexey Dobriyan <adobriyan@sw.ru>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 76df0c25
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
}