arm: remove cast for kzalloc return value
authorZhang Yanfei <zhangyanfei@cn.fujitsu.com>
Tue, 12 Mar 2013 04:42:37 +0000 (12:42 +0800)
committerJiri Kosina <jkosina@suse.cz>
Mon, 18 Mar 2013 13:15:58 +0000 (14:15 +0100)
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>
arch/arm/kernel/topology.c

index 79282ebcd9394f154d63d8edc7576aac2f66e7f7..f10316b4ecdc7558b05644d3758532a26fa6de58 100644 (file)
@@ -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;