aboutsummaryrefslogtreecommitdiffstats
path: root/fs/binfmt_elf.c
diff options
context:
space:
mode:
authorJesper Juhl <jesper.juhl@gmail.com>2006-01-09 23:54:45 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2006-01-10 11:02:01 -0500
commit792db3af38a55b2079df504b9f5aa57b2dbee48d (patch)
treea88af0f8cdda91f4ed8ac8278ca0412abd63d489 /fs/binfmt_elf.c
parent352d768b19408d3c019a3fa09fd5bfed99a55bc6 (diff)
[PATCH] fs/binfmt_elf: Remove unneeded kmalloc() return value casts
Remove unneeded casts of kmalloc() return value in binfmt_elf. 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.c')
-rw-r--r--fs/binfmt_elf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/binfmt_elf.c b/fs/binfmt_elf.c
index 80ca932ba0bd..a4f6f57d91aa 100644
--- a/fs/binfmt_elf.c
+++ b/fs/binfmt_elf.c
@@ -622,7 +622,7 @@ static int load_elf_binary(struct linux_binprm * bprm, struct pt_regs * regs)
622 goto out_free_file; 622 goto out_free_file;
623 623
624 retval = -ENOMEM; 624 retval = -ENOMEM;
625 elf_interpreter = (char *) kmalloc(elf_ppnt->p_filesz, 625 elf_interpreter = kmalloc(elf_ppnt->p_filesz,
626 GFP_KERNEL); 626 GFP_KERNEL);
627 if (!elf_interpreter) 627 if (!elf_interpreter)
628 goto out_free_file; 628 goto out_free_file;