Message ID | 20170531165931.6945-3-juri.lelli@arm.com |
---|---|
State | Accepted |
Commit | 95adb4e59263d3056d75eb385e79f9e037b5b7bc |
Headers | show |
Series | Fix issues and factorize arm/arm64 capacity information code | expand |
diff --git a/arch/arm/kernel/topology.c b/arch/arm/kernel/topology.c index f8a3ab82e77f..1b8ec3054642 100644 --- a/arch/arm/kernel/topology.c +++ b/arch/arm/kernel/topology.c @@ -166,7 +166,7 @@ static int __init parse_cpu_capacity(struct device_node *cpu_node, int cpu) if (!raw_capacity) { pr_err("cpu_capacity: failed to allocate memory for raw capacities\n"); cap_parsing_failed = true; - return !ret; + return 0; } } capacity_scale = max(cpu_capacity, capacity_scale);