Skip to contentSkip to conversation

clocksource: Delete an error message for a failed memory allocation in bcm2835_timer_init()

PATCH In review SF Markus Elfring 2 participants 2 messages Aug 27, 2017 – Aug 29, 2017

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

PATCH 1/1 clocksource: Delete an error message for a failed memory allocation in bcm2835_timer_init()

From: Markus Elfring <[email protected]>
Date: Sun, 27 Aug 2017 21:38:13 +0200

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

This issue was detected by using the Coccinelle software.

---
 drivers/clocksource/bcm2835_timer.c | 1 -
 1 file changed, 1 deletion(-)
drivers/clocksource/bcm2835_timer.c +0 -1
index 82828d3a4739..39e489a96ad7 100644
@@ -114,7 +114,6 @@ static int __init bcm2835_timer_init(struct device_node *node)
 
 	timer = kzalloc(sizeof(*timer), GFP_KERNEL);
 	if (!timer) {
-		pr_err("Can't allocate timer struct\n");
 		ret = -ENOMEM;
 		goto err_iounmap;
 	}
Signature · 1 line
2.14.1
#1 lore raw
Quoted 9 lines · SF Markus Elfring

From: Markus Elfring <[email protected]>
Date: Sun, 27 Aug 2017 21:38:13 +0200

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

This issue was detected by using the Coccinelle software.

---

I have applied it.

Thanks.

-- Daniel

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