Commit 8691f3a7 authored by Jesper Juhl's avatar Jesper Juhl Committed by Linus Torvalds

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: default avatarJesper Juhl <jesper.juhl@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 26fb1589
...@@ -2444,7 +2444,7 @@ int zone_wait_table_init(struct zone *zone, unsigned long zone_size_pages) ...@@ -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 * To use this new node's memory, further consideration will be
* necessary. * necessary.
*/ */
zone->wait_table = (wait_queue_head_t *)vmalloc(alloc_size); zone->wait_table = vmalloc(alloc_size);
} }
if (!zone->wait_table) if (!zone->wait_table)
return -ENOMEM; return -ENOMEM;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment