Skip to contentSkip to conversation

ARM: topology: Delete an error message for a failed memory allocation in parse_cpu_capacity()

PATCH New SF Markus Elfring 1 participant 1 message Jun 1, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: topology: Delete an error message for a failed memory allocation in parse_cpu_capacity()

From: Markus Elfring <[email protected]>
Date: Thu, 1 Jun 2017 18:28:43 +0200

Omit an extra message for a memory allocation failure in this function.

This issue was detected by using the Coccinelle software.

---
 arch/arm/kernel/topology.c | 1 -
 1 file changed, 1 deletion(-)
arch/arm/kernel/topology.c +0 -1
index f8a3ab82e77f..db81ec24f8d3 100644
@@ -164,7 +164,6 @@ static int __init parse_cpu_capacity(struct device_node *cpu_node, int cpu)
 					       sizeof(*raw_capacity),
 					       GFP_KERNEL);
 			if (!raw_capacity) {
-				pr_err("cpu_capacity: failed to allocate memory for raw capacities\n");
 				cap_parsing_failed = true;
 				return !ret;
 			}
Signature · 1 line
2.13.0