diff options
author | Zhang Yanfei <zhangyanfei@cn.fujitsu.com> | 2013-03-12 12:47:08 +0800 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2013-03-19 16:14:53 -0700 |
commit | 7c13e0d1e8f4eeb3537d9a0b6b70e464c5736854 (patch) | |
tree | db8d42b7e3057cf41dba845f7b7c679c7910f351 /arch/ia64/kernel | |
parent | ffa9095532d758cab6ecd6f161b08e338e7f64cb (diff) | |
download | blackbird-op-linux-7c13e0d1e8f4eeb3537d9a0b6b70e464c5736854.tar.gz blackbird-op-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/kernel')
-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; |