From: daniel.lezcano@linaro.org (Daniel Lezcano)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 9/9] clocksource/drivers/bcm2835: Remove message on memory allocation failure
Date: Tue, 29 Aug 2017 11:34:27 +0200 [thread overview]
Message-ID: <1503999271-15712-9-git-send-email-daniel.lezcano@linaro.org> (raw)
In-Reply-To: <1503999271-15712-1-git-send-email-daniel.lezcano@linaro.org>
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
next parent reply other threads:[~2017-08-29 9:34 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20170829093354.GA2572@mai>
[not found] ` <1503999271-15712-1-git-send-email-daniel.lezcano@linaro.org>
2017-08-29 9:34 ` Daniel Lezcano [this message]
2017-08-29 11:21 ` [PATCH 9/9] clocksource/drivers/bcm2835: Remove message on memory allocation failure SF Markus Elfring
2017-08-29 11:42 ` Daniel Lezcano
2017-08-29 13:12 ` SF Markus Elfring
2017-08-29 13:16 ` Daniel Lezcano
2017-08-29 13:20 ` SF Markus Elfring
2017-08-29 13:26 ` Daniel Lezcano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1503999271-15712-9-git-send-email-daniel.lezcano@linaro.org \
--to=daniel.lezcano@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).