Skip to contentSkip to conversation

ARM: cpuidle: Delete an error message for a failed memory allocation in arm_idle_init_cpu()

PATCH In review SF Markus Elfring 2 participants 2 messages Feb 15, 2018 – Feb 16, 2018

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

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

From: Markus Elfring <[email protected]>
Date: Thu, 15 Feb 2018 16:40:38 +0100

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

This issue was detected by using the Coccinelle software.

---
 drivers/cpuidle/cpuidle-arm.c | 1 -
 1 file changed, 1 deletion(-)
drivers/cpuidle/cpuidle-arm.c +0 -1
index ddee1b601b89..e07bc7ace774 100644
@@ -129,7 +129,6 @@ static int __init arm_idle_init_cpu(int cpu)
 
 	dev = kzalloc(sizeof(*dev), GFP_KERNEL);
 	if (!dev) {
-		pr_err("Failed to allocate cpuidle device\n");
 		ret = -ENOMEM;
 		goto out_unregister_drv;
 	}
Signature · 1 line
2.16.1
Acked-by on v1 1/1
#1 lore raw
Quoted 9 lines · SF Markus Elfring

From: Markus Elfring <[email protected]>
Date: Thu, 15 Feb 2018 16:40:38 +0100

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

This issue was detected by using the Coccinelle software.

---

Signature · 10 lines
 <http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs

Follow Linaro:  <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog

--
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html