diff options
author | Zhang Yanfei <zhangyanfei@cn.fujitsu.com> | 2013-03-12 05:47:08 +0100 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2013-03-20 00:14:53 +0100 |
commit | 7c13e0d1e8f4eeb3537d9a0b6b70e464c5736854 (patch) | |
tree | db8d42b7e3057cf41dba845f7b7c679c7910f351 /arch/ia64 | |
parent | Fix kexec oops when iosapic was removed (diff) | |
download | linux-7c13e0d1e8f4eeb3537d9a0b6b70e464c5736854.tar.xz linux-7c13e0d1e8f4eeb3537d9a0b6b70e464c5736854.zip |
Remove cast for kmalloc return value
remove cast for kmalloc return value.
Signed-off-by: Zhang Yanfei <zhangyanfei@cn.fujitsu.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'arch/ia64')
-rw-r--r-- | arch/ia64/kernel/mca_drv.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |