Messages in this thread Patch in this message | | | Date | Mon, 4 Apr 2005 23:31:35 +0200 (CEST) | From | Jesper Juhl <> | Subject | [PATCH] no need to cast pointer to (void *) when passing it to kfree() |
| |
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);
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |