All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ARM: topology: Delete an error message for a failed memory allocation in parse_cpu_capacity()
@ 2017-06-01 16:35 ` SF Markus Elfring
  0 siblings, 0 replies; 2+ messages in thread
From: SF Markus Elfring @ 2017-06-01 16:35 UTC (permalink / raw)
  To: linux-kernel, Ingo Molnar, Juri Lelli, Russell King, Vincent Guittot
  Cc: LKML, kernel-janitors

From: Markus Elfring <elfring@users.sourceforge.net>
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.

Link: http://events.linuxfoundation.org/sites/events/files/slides/LCJ16-Refactor_Strings-WSang_0.pdf
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
---
 arch/arm/kernel/topology.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/arch/arm/kernel/topology.c b/arch/arm/kernel/topology.c
index f8a3ab82e77f..db81ec24f8d3 100644
--- a/arch/arm/kernel/topology.c
+++ b/arch/arm/kernel/topology.c
@@ -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;
 			}
-- 
2.13.0

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH] ARM: topology: Delete an error message for a failed memory allocation in parse_cpu_capacity(
@ 2017-06-01 16:35 ` SF Markus Elfring
  0 siblings, 0 replies; 2+ messages in thread
From: SF Markus Elfring @ 2017-06-01 16:35 UTC (permalink / raw)
  To: linux-kernel, Ingo Molnar, Juri Lelli, Russell King, Vincent Guittot
  Cc: kernel-janitors

From: Markus Elfring <elfring@users.sourceforge.net>
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.

Link: http://events.linuxfoundation.org/sites/events/files/slides/LCJ16-Refactor_Strings-WSang_0.pdf
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
---
 arch/arm/kernel/topology.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/arch/arm/kernel/topology.c b/arch/arm/kernel/topology.c
index f8a3ab82e77f..db81ec24f8d3 100644
--- a/arch/arm/kernel/topology.c
+++ b/arch/arm/kernel/topology.c
@@ -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;
 			}
-- 
2.13.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-06-01 16:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-01 16:35 [PATCH] ARM: topology: Delete an error message for a failed memory allocation in parse_cpu_capacity() SF Markus Elfring
2017-06-01 16:35 ` [PATCH] ARM: topology: Delete an error message for a failed memory allocation in parse_cpu_capacity( SF Markus Elfring

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.