diff options
author | Zhang Yanfei <zhangyanfei@cn.fujitsu.com> | 2013-03-12 12:47:08 +0800 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2013-03-18 14:15:59 +0100 |
commit | 9624e347551c1e0de1795cb8ca1a0600311d8bae (patch) | |
tree | 779cb54fa1bb52ad9dd610030df2c3e6593c3317 | |
parent | 99c4d538854833c1be1e7449605de2f39519299e (diff) | |
download | linux-rpi3-9624e347551c1e0de1795cb8ca1a0600311d8bae.tar.gz linux-rpi3-9624e347551c1e0de1795cb8ca1a0600311d8bae.tar.bz2 linux-rpi3-9624e347551c1e0de1795cb8ca1a0600311d8bae.zip |
ia64: remove cast for kmalloc return value
remove cast for kmalloc return value.
Signed-off-by: Zhang Yanfei <zhangyanfei@cn.fujitsu.com>
Cc: Tony Luck <tony.luck@intel.com>
Cc: Fenghua Yu <fenghua.yu@intel.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: linux-ia64@vger.kernel.org
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
-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; |