diff options
author | Jesper Juhl <jesper.juhl@gmail.com> | 2006-01-10 05:54:45 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-10 17:02:01 +0100 |
commit | 792db3af38a55b2079df504b9f5aa57b2dbee48d (patch) | |
tree | a88af0f8cdda91f4ed8ac8278ca0412abd63d489 /fs/binfmt_elf_fdpic.c | |
parent | [PATCH] Decrease number of pointer derefs in multipath.c (diff) | |
download | linux-792db3af38a55b2079df504b9f5aa57b2dbee48d.tar.xz linux-792db3af38a55b2079df504b9f5aa57b2dbee48d.zip |
[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_fdpic.c')
-rw-r--r-- | fs/binfmt_elf_fdpic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/binfmt_elf_fdpic.c b/fs/binfmt_elf_fdpic.c index e0344f69c79d..5b3076e8ee90 100644 --- a/fs/binfmt_elf_fdpic.c +++ b/fs/binfmt_elf_fdpic.c @@ -187,7 +187,7 @@ static int load_elf_fdpic_binary(struct linux_binprm *bprm, struct pt_regs *regs goto error; /* read the name of the interpreter into memory */ - interpreter_name = (char *) kmalloc(phdr->p_filesz, GFP_KERNEL); + interpreter_name = kmalloc(phdr->p_filesz, GFP_KERNEL); if (!interpreter_name) goto error; |