From: Jesper Juhl <juhl-lkml@dif.dk>
To: linux-kernel <linux-kernel@vger.kernel.org>
Cc: David Howells <dhowells@redhat.com>
Subject: [PATCH] no need to cast pointer to (void *) when passing it to kfree()
Date: Mon, 4 Apr 2005 23:31:35 +0200 (CEST) [thread overview]
Message-ID: <Pine.LNX.4.62.0504042326220.2496@dragon.hyggekrogen.localhost> (raw)
kfree() takes a void pointer argument, no need to cast.
Signed-off-by: Jesper Juhl <juhl-lkml@dif.dk>
--- linux-2.6.12-rc1-mm4-orig/mm/nommu.c 2005-03-31 21:20:08.000000000 +0200
+++ linux-2.6.12-rc1-mm4/mm/nommu.c 2005-04-04 23:25:23.000000000 +0200
@@ -761,7 +761,7 @@ static void put_vma(struct vm_area_struc
if (!(vma->vm_flags & (VM_IO | VM_SHARED)) && vma->vm_start) {
realalloc -= kobjsize((void *) vma->vm_start);
askedalloc -= vma->vm_end - vma->vm_start;
- kfree((void *) vma->vm_start);
+ kfree(vma->vm_start);
}
realalloc -= kobjsize(vma);
next reply other threads:[~2005-04-04 21:38 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-04 21:31 Jesper Juhl [this message]
2005-04-04 21:55 ` Jesper Juhl
2005-04-05 10:04 ` David Howells
2005-04-05 10:39 ` Jesper Juhl
2005-04-05 16:16 ` Jörn Engel
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=Pine.LNX.4.62.0504042326220.2496@dragon.hyggekrogen.localhost \
--to=juhl-lkml@dif.dk \
--cc=dhowells@redhat.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
all inboxes | Powered by JetHome®