diff options
author | Jesper Juhl <jesper.juhl@gmail.com> | 2007-10-16 04:24:49 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-16 12:42:54 -0400 |
commit | 8691f3a72f32f8b3ed535faa27140b3ae293c90b (patch) | |
tree | 78ed23998e99de2fb4fb5b135c1fa4ad70612ef0 /mm | |
parent | 26fb1589cb0aaec3a0b4418c54f30c1a2b1781f6 (diff) |
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 <jesper.juhl@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/page_alloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
2444 | * To use this new node's memory, further consideration will be | 2444 | * To use this new node's memory, further consideration will be |
2445 | * necessary. | 2445 | * necessary. |
2446 | */ | 2446 | */ |
2447 | zone->wait_table = (wait_queue_head_t *)vmalloc(alloc_size); | 2447 | zone->wait_table = vmalloc(alloc_size); |
2448 | } | 2448 | } |
2449 | if (!zone->wait_table) | 2449 | if (!zone->wait_table) |
2450 | return -ENOMEM; | 2450 | return -ENOMEM; |