From: Jesper Juhl Date: Thu, 4 Nov 2010 20:44:41 +0000 (+0100) Subject: Clean up relay_alloc_page_array() slightly by using vzalloc rather than vmalloc and... X-Git-Tag: v2.6.37-rc2~92 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=408af87a397a8ddef56ad39a79481f592aa1ac1a;p=pandora-kernel.git Clean up relay_alloc_page_array() slightly by using vzalloc rather than vmalloc and memset We can optimize kernel/relay.c::relay_alloc_page_array() slightly by using vzalloc. The patch makes these changes: - use vzalloc instead of vmalloc+memset. - remove redundant local variable 'array'. - declare local 'pa_size' as const. Cuts down nicely on both source and object-code size. Signed-off-by: Jesper Juhl Acked-by: Pekka Enberg Acked-by: Mathieu Desnoyers Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed