Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1722279
| From | Daniel Lezcano <daniel.lezcano@linaro.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 9/9] clocksource/drivers/bcm2835: Remove message on memory allocation failure |
| Date | 2017-08-29 11:40 +0200 |
| Message-ID | <ujLa3-T4-39@gated-at.bofh.it> (permalink) |
| References | <ujLa1-T4-7@gated-at.bofh.it> <ujLa1-T4-9@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
From: Markus Elfring <elfring@users.sourceforge.net>
The bcm2835_timer_init() function emits an error message in case of a memory
allocation failure. This is pointless as the mm core already do that.
Remove this message.
This issue was detected by using the Coccinelle software.
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
---
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 82828d3..39e489a 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.7.4
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 1/9] dt-bindings: timer: Add nxp tpm timer binding doc Daniel Lezcano <daniel.lezcano@linaro.org> - 2017-08-29 11:40 +0200
[PATCH 3/9] devicetree: bindings: Remove sh7372 CMT binding Daniel Lezcano <daniel.lezcano@linaro.org> - 2017-08-29 11:40 +0200
[PATCH 9/9] clocksource/drivers/bcm2835: Remove message on memory allocation failure Daniel Lezcano <daniel.lezcano@linaro.org> - 2017-08-29 11:40 +0200
Re: [PATCH 9/9] clocksource/drivers/bcm2835: Remove message on memory allocation failure SF Markus Elfring <elfring@users.sourceforge.net> - 2017-08-29 13:30 +0200
Re: [PATCH 9/9] clocksource/drivers/bcm2835: Remove message on memory allocation failure Daniel Lezcano <daniel.lezcano@linaro.org> - 2017-08-29 13:50 +0200
Re: [PATCH 9/9] clocksource/drivers/bcm2835: Remove message on memory allocation failure Daniel Lezcano <daniel.lezcano@linaro.org> - 2017-08-29 15:20 +0200
Re: clocksource/drivers/bcm2835: Remove message on memory allocation failure SF Markus Elfring <elfring@users.sourceforge.net> - 2017-08-29 15:30 +0200
Re: clocksource/drivers/bcm2835: Remove message on memory allocation failure Daniel Lezcano <daniel.lezcano@linaro.org> - 2017-08-29 15:30 +0200
Re: [PATCH 9/9] clocksource/drivers/bcm2835: Remove message on memory allocation failure SF Markus Elfring <elfring@users.sourceforge.net> - 2017-08-29 15:20 +0200
[PATCH 2/9] clocksource/drivers/imx-tpm: Add imx tpm timer support Daniel Lezcano <daniel.lezcano@linaro.org> - 2017-08-29 11:40 +0200
[PATCH 6/9] devicetree: bindings: Deprecate property, update example Daniel Lezcano <daniel.lezcano@linaro.org> - 2017-08-29 11:40 +0200
csiph-web