Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1720914 > unrolled thread

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

Started bySF Markus Elfring <elfring@users.sourceforge.net>
First post2017-08-27 21:50 +0200
Last post2017-08-29 11:20 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] clocksource: Delete an error message for a failed memory  allocation in bcm2835_timer_init() SF Markus Elfring <elfring@users.sourceforge.net> - 2017-08-27 21:50 +0200
    Re: [PATCH] clocksource: Delete an error message for a failed memory  allocation in bcm2835_timer_init() Daniel Lezcano <daniel.lezcano@linaro.org> - 2017-08-29 11:20 +0200

#1720914 — [PATCH] clocksource: Delete an error message for a failed memory allocation in bcm2835_timer_init()

FromSF Markus Elfring <elfring@users.sourceforge.net>
Date2017-08-27 21:50 +0200
Subject[PATCH] clocksource: Delete an error message for a failed memory allocation in bcm2835_timer_init()
Message-ID<ujbJg-3FY-5@gated-at.bofh.it>
From: Markus Elfring <elfring@users.sourceforge.net>
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.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
---
 drivers/clocksource/bcm2835_timer.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/clocksource/bcm2835_timer.c b/drivers/clocksource/bcm2835_timer.c
index 82828d3a4739..39e489a96ad7 100644
--- a/drivers/clocksource/bcm2835_timer.c
+++ b/drivers/clocksource/bcm2835_timer.c
@@ -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;
 	}
-- 
2.14.1

[toc] | [next] | [standalone]


#1722260

FromDaniel Lezcano <daniel.lezcano@linaro.org>
Date2017-08-29 11:20 +0200
Message-ID<ujKQF-L5-5@gated-at.bofh.it>
In reply to#1720914
On 27/08/2017 21:46, SF Markus Elfring wrote:
> From: Markus Elfring <elfring@users.sourceforge.net>
> 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.
> 
> Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
> ---

I have applied it.

Thanks.

  -- Daniel


-- 
 <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

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web