[PATCH] kfree cleanup: fs
This is the fs/ part of the big kfree cleanup patch. Remove pointless checks for NULL prior to calling kfree() in fs/. Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:

committed by
Linus Torvalds

parent
6044ec8882
commit
f99d49adf5
@@ -1006,8 +1006,7 @@ out_free_dentry:
|
||||
if (interpreter)
|
||||
fput(interpreter);
|
||||
out_free_interp:
|
||||
if (elf_interpreter)
|
||||
kfree(elf_interpreter);
|
||||
kfree(elf_interpreter);
|
||||
out_free_file:
|
||||
sys_close(elf_exec_fileno);
|
||||
out_free_fh:
|
||||
|
Reference in New Issue
Block a user