Skip to content

Commit

Permalink
arm: remove cast for kzalloc return value
Browse files Browse the repository at this point in the history
remove cast for kzalloc return value.

Signed-off-by: Zhang 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: Jiri Kosina <jkosina@suse.cz>
  • Loading branch information
Zhang Yanfei authored and Jiri Kosina committed Mar 18, 2013
1 parent c031175 commit 8c655c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/kernel/topology.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ static void __init parse_dt_topology(void)
int alloc_size, cpu = 0;

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"))) {
const u32 *rate, *reg;
Expand Down

0 comments on commit 8c655c9

Please sign in to comment.