diff options
author | Jesper Juhl <jesper.juhl@gmail.com> | 2005-11-07 04:01:34 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-07 10:54:06 -0500 |
commit | f99d49adf527fa6f7a9c42257fa76bca6b8df1e3 (patch) | |
tree | 41dddbc336016f9dc9557cdb15300de5e599dac1 /fs/binfmt_elf_fdpic.c | |
parent | 6044ec8882c726e325017bd948aa0cd94ad33abc (diff) |
[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>
Diffstat (limited to 'fs/binfmt_elf_fdpic.c')
-rw-r--r-- | fs/binfmt_elf_fdpic.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/fs/binfmt_elf_fdpic.c b/fs/binfmt_elf_fdpic.c index dda87c4c82a3..e0344f69c79d 100644 --- a/fs/binfmt_elf_fdpic.c +++ b/fs/binfmt_elf_fdpic.c | |||
@@ -411,16 +411,11 @@ error: | |||
411 | allow_write_access(interpreter); | 411 | allow_write_access(interpreter); |
412 | fput(interpreter); | 412 | fput(interpreter); |
413 | } | 413 | } |
414 | if (interpreter_name) | 414 | kfree(interpreter_name); |
415 | kfree(interpreter_name); | 415 | kfree(exec_params.phdrs); |
416 | if (exec_params.phdrs) | 416 | kfree(exec_params.loadmap); |
417 | kfree(exec_params.phdrs); | 417 | kfree(interp_params.phdrs); |
418 | if (exec_params.loadmap) | 418 | kfree(interp_params.loadmap); |
419 | kfree(exec_params.loadmap); | ||
420 | if (interp_params.phdrs) | ||
421 | kfree(interp_params.phdrs); | ||
422 | if (interp_params.loadmap) | ||
423 | kfree(interp_params.loadmap); | ||
424 | return retval; | 419 | return retval; |
425 | 420 | ||
426 | /* unrecoverable error - kill the process */ | 421 | /* unrecoverable error - kill the process */ |