diff options
author | Jesper Juhl <jesper.juhl@gmail.com> | 2007-10-16 01:24:49 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-16 09:42:54 -0700 |
commit | 8691f3a72f32f8b3ed535faa27140b3ae293c90b (patch) | |
tree | 78ed23998e99de2fb4fb5b135c1fa4ad70612ef0 /mm/page_alloc.c | |
parent | 26fb1589cb0aaec3a0b4418c54f30c1a2b1781f6 (diff) | |
download | kernel_samsung_smdk4412-8691f3a72f32f8b3ed535faa27140b3ae293c90b.zip kernel_samsung_smdk4412-8691f3a72f32f8b3ed535faa27140b3ae293c90b.tar.gz kernel_samsung_smdk4412-8691f3a72f32f8b3ed535faa27140b3ae293c90b.tar.bz2 |
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/page_alloc.c')
-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 1a8c595..71013e6 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; |