Commit 8c655c9b authored by Zhang Yanfei's avatar Zhang Yanfei Committed by Jiri Kosina

arm: remove cast for kzalloc return value

remove cast for kzalloc return value.
Signed-off-by: default avatarZhang Yanfei <zhangyanfei@cn.fujitsu.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Russell King <linux@arm.linux.org.uk>
Cc: linux-arm-kernel@lists.infradead.org
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent c0311757
...@@ -100,7 +100,7 @@ static void __init parse_dt_topology(void) ...@@ -100,7 +100,7 @@ static void __init parse_dt_topology(void)
int alloc_size, cpu = 0; int alloc_size, cpu = 0;
alloc_size = nr_cpu_ids * sizeof(struct cpu_capacity); alloc_size = nr_cpu_ids * sizeof(struct cpu_capacity);
cpu_capacity = (struct cpu_capacity *)kzalloc(alloc_size, GFP_NOWAIT); cpu_capacity = kzalloc(alloc_size, GFP_NOWAIT);
while ((cn = of_find_node_by_type(cn, "cpu"))) { while ((cn = of_find_node_by_type(cn, "cpu"))) {
const u32 *rate, *reg; const u32 *rate, *reg;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment