All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] no need to cast pointer to (void *) when passing it to kfree()
@ 2005-04-04 21:31 Jesper Juhl
  2005-04-04 21:55 ` Jesper Juhl
  2005-04-05 10:04 ` David Howells
  0 siblings, 2 replies; 5+ messages in thread
From: Jesper Juhl @ 2005-04-04 21:31 UTC (permalink / raw)
  To: linux-kernel; +Cc: David Howells


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);



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-04-05 16:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-04 21:31 [PATCH] no need to cast pointer to (void *) when passing it to kfree() Jesper Juhl
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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.