mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-20 05:31:15 +00:00
[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:
parent
6044ec8882
commit
f99d49adf5
39 changed files with 137 additions and 245 deletions
|
@ -411,16 +411,11 @@ error:
|
|||
allow_write_access(interpreter);
|
||||
fput(interpreter);
|
||||
}
|
||||
if (interpreter_name)
|
||||
kfree(interpreter_name);
|
||||
if (exec_params.phdrs)
|
||||
kfree(exec_params.phdrs);
|
||||
if (exec_params.loadmap)
|
||||
kfree(exec_params.loadmap);
|
||||
if (interp_params.phdrs)
|
||||
kfree(interp_params.phdrs);
|
||||
if (interp_params.loadmap)
|
||||
kfree(interp_params.loadmap);
|
||||
kfree(interpreter_name);
|
||||
kfree(exec_params.phdrs);
|
||||
kfree(exec_params.loadmap);
|
||||
kfree(interp_params.phdrs);
|
||||
kfree(interp_params.loadmap);
|
||||
return retval;
|
||||
|
||||
/* unrecoverable error - kill the process */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue