From: Zhang Yanfei Date: Tue, 12 Mar 2013 04:47:08 +0000 (+0800) Subject: ia64: remove cast for kmalloc return value X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=9624e347551c1e0de1795cb8ca1a0600311d8bae;p=openwrt%2Fstaging%2Fblogic.git ia64: remove cast for kmalloc return value remove cast for kmalloc return value. Signed-off-by: Zhang Yanfei Cc: Tony Luck Cc: Fenghua Yu Cc: Andrew Morton Cc: linux-ia64@vger.kernel.org Signed-off-by: Jiri Kosina --- diff --git a/arch/ia64/kernel/mca_drv.c b/arch/ia64/kernel/mca_drv.c index 9392e021c93b..94f8bf777afa 100644 --- a/arch/ia64/kernel/mca_drv.c +++ b/arch/ia64/kernel/mca_drv.c @@ -349,7 +349,7 @@ init_record_index_pools(void) /* - 3 - */ slidx_pool.max_idx = (rec_max_size/sect_min_size) * 2 + 1; - slidx_pool.buffer = (slidx_list_t *) + slidx_pool.buffer = kmalloc(slidx_pool.max_idx * sizeof(slidx_list_t), GFP_KERNEL); return slidx_pool.buffer ? 0 : -ENOMEM;