From: Jesper Juhl Date: Tue, 16 Oct 2007 08:24:49 +0000 (-0700) Subject: mm: no need to cast vmalloc() return value in zone_wait_table_init() X-Git-Tag: v2.6.24-rc1~1214 X-Git-Url: http://git.cascardo.info/?p=cascardo%2Flinux.git;a=commitdiff_plain;h=8691f3a72f32f8b3ed535faa27140b3ae293c90b mm: no need to cast vmalloc() return value in zone_wait_table_init() vmalloc() returns a void pointer, so there's no need to cast its return value in mm/page_alloc.c::zone_wait_table_init(). Signed-off-by: Jesper Juhl Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 1a8c59571cb7..71013e6bef25 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -2444,7 +2444,7 @@ int zone_wait_table_init(struct zone *zone, unsigned long zone_size_pages) * To use this new node's memory, further consideration will be * necessary. */ - zone->wait_table = (wait_queue_head_t *)vmalloc(alloc_size); + zone->wait_table = vmalloc(alloc_size); } if (!zone->wait_table) return -ENOMEM;