projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e87b686
)
x86/platform/intel/mrst: Remove cast for kmalloc() return value
author
Zhang Yanfei
<zhangyanfei@cn.fujitsu.com>
Tue, 12 Mar 2013 04:58:02 +0000
(12:58 +0800)
committer
Ingo Molnar
<mingo@kernel.org>
Tue, 12 Mar 2013 08:10:20 +0000
(09:10 +0100)
Signed-off-by: Zhang Yanfei <zhangyanfei@cn.fujitsu.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Link:
http://lkml.kernel.org/r/513EB5DA.2010300@cn.fujitsu.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/platform/mrst/mrst.c
patch
|
blob
|
history
diff --git
a/arch/x86/platform/mrst/mrst.c
b/arch/x86/platform/mrst/mrst.c
index e31bcd8f2eeef2af6d2db13b824864b74867767d..a0a0a4389bbd9d5c15ed4ca988259d4ff8c6e117 100644
(file)
--- 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));