From: Zhang Yanfei Date: Tue, 12 Mar 2013 04:58:02 +0000 (+0800) Subject: x86/platform/intel/mrst: Remove cast for kmalloc() return value X-Git-Tag: upstream/snapshot3+hdmi~5261^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ad0304cfd90f46bfcae3a6cd2b69067741541730;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git x86/platform/intel/mrst: Remove cast for kmalloc() return value Signed-off-by: Zhang Yanfei Cc: Andrew Morton Link: http://lkml.kernel.org/r/513EB5DA.2010300@cn.fujitsu.com Signed-off-by: Ingo Molnar --- diff --git a/arch/x86/platform/mrst/mrst.c b/arch/x86/platform/mrst/mrst.c index e31bcd8..a0a0a43 100644 --- a/arch/x86/platform/mrst/mrst.c +++ b/arch/x86/platform/mrst/mrst.c @@ -356,8 +356,7 @@ static int __init sfi_parse_gpio(struct sfi_table_header *table) num = SFI_GET_NUM_ENTRIES(sb, struct sfi_gpio_table_entry); pentry = (struct sfi_gpio_table_entry *)sb->pentry; - gpio_table = (struct sfi_gpio_table_entry *) - kmalloc(num * sizeof(*pentry), GFP_KERNEL); + gpio_table = kmalloc(num * sizeof(*pentry), GFP_KERNEL); if (!gpio_table) return -1; memcpy(gpio_table, pentry, num * sizeof(*pentry));