* [PATCH 1/6] fs/binfmt_elf: Remove unneeded kmalloc() return value casts
@ 2005-12-11 19:33 Jesper Juhl
0 siblings, 0 replies; only message in thread
From: Jesper Juhl @ 2005-12-11 19:33 UTC (permalink / raw)
To: Linux Kernel Mailing List
Cc: Eric Youngdale, David Howells, Andrew Morton, Jesper Juhl
Remove unneeded casts of kmalloc() return value in binfmt_elf.
Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
---
fs/binfmt_elf.c | 2 +-
fs/binfmt_elf_fdpic.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
--- linux-2.6.15-rc5-git1-orig/fs/binfmt_elf.c 2005-12-04 18:48:35.000000000 +0100
+++ linux-2.6.15-rc5-git1/fs/binfmt_elf.c 2005-12-11 19:27:55.000000000 +0100
@@ -616,7 +616,7 @@ static int load_elf_binary(struct linux_
goto out_free_file;
retval = -ENOMEM;
- elf_interpreter = (char *) kmalloc(elf_ppnt->p_filesz,
+ elf_interpreter = kmalloc(elf_ppnt->p_filesz,
GFP_KERNEL);
if (!elf_interpreter)
goto out_free_file;
--- linux-2.6.15-rc5-git1-orig/fs/binfmt_elf_fdpic.c 2005-12-04 18:48:36.000000000 +0100
+++ linux-2.6.15-rc5-git1/fs/binfmt_elf_fdpic.c 2005-12-11 19:26:41.000000000 +0100
@@ -187,7 +187,7 @@ static int load_elf_fdpic_binary(struct
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;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-12-11 19:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-11 19:33 [PATCH 1/6] fs/binfmt_elf: Remove unneeded kmalloc() return value casts Jesper Juhl
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome