From: Jesper Juhl <jesper.juhl@gmail.com>
To: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Cc: Eric Youngdale <ericy@cais.com>,
David Howells <dhowells@redhat.com>,
Andrew Morton <akpm@osdl.org>,
Jesper Juhl <jesper.juhl@gmail.com>
Subject: [PATCH 1/6] fs/binfmt_elf: Remove unneeded kmalloc() return value casts
Date: Sun, 11 Dec 2005 20:33:48 +0100 [thread overview]
Message-ID: <200512112033.48345.jesper.juhl@gmail.com> (raw)
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;
reply other threads:[~2005-12-11 19:33 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200512112033.48345.jesper.juhl@gmail.com \
--to=jesper.juhl@gmail.com \
--cc=akpm@osdl.org \
--cc=dhowells@redhat.com \
--cc=ericy@cais.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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