topology: removed kzalloc return value cast
PATCH 1/1 topology: removed kzalloc return value cast
Signed-off-by Mihai Stirbat <[email protected]>
--- arch/arm/kernel/topology.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/kernel/topology.c +1 -1
@@ -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;
Signature · 1 line
1.7.10.4
Quoted 10 lines · Mihai Stirbat
Signed-off-by Mihai Stirbat <[email protected]>--- arch/arm/kernel/topology.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/arm/kernel/topology.c +0
-0
arch/arm/kernel/topology.c static void __init parse_dt_topology(void) · line 103
Quoted 5 lines
arch/arm/kernel/topology.c +1
-1@@ -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 );
you're right
Acked-by Vincent Guittot <[email protected]>
Quoted 6 lines
arch/arm/kernel/topology.c +0
-1while ((cn =of_find_node_by_type (cn,"cpu" ))) {const u32 *rate, *reg; --1.7.10.4