mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Daniel Lezcano <daniel.lezcano@linaro.org>
To: tglx@linutronix.de
Cc: linux-kernel@vger.kernel.org,
	Markus Elfring <elfring@users.sourceforge.net>,
	Florian Fainelli <f.fainelli@gmail.com>,
	Ray Jui <rjui@broadcom.com>,
	Scott Branden <sbranden@broadcom.com>,
	bcm-kernel-feedback-list@broadcom.com (maintainer:BROADCOM
	BCM281XX/BCM11XXX/BCM216XX ARM ARCHITE...),
	Eric Anholt <eric@anholt.net>,
	Stefan Wahren <stefan.wahren@i2se.com>,
	linux-rpi-kernel@lists.infradead.org (moderated list:BROADCOM
	BCM2835 ARM ARCHITECTURE),
	linux-arm-kernel@lists.infradead.org (moderated list:BROADCOM
	BCM2835 ARM ARCHITECTURE)
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

  parent reply	other threads:[~2017-08-29  9:36 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-29  9:33 [GIT PULL] clockevents for 4.14 Daniel Lezcano
2017-08-29  9:34 ` [PATCH 1/9] dt-bindings: timer: Add nxp tpm timer binding doc Daniel Lezcano
2017-08-29  9:34   ` [PATCH 2/9] clocksource/drivers/imx-tpm: Add imx tpm timer support Daniel Lezcano
2017-08-29  9:34   ` [PATCH 3/9] devicetree: bindings: Remove sh7372 CMT binding Daniel Lezcano
2017-08-29  9:34   ` [PATCH 4/9] devicetree: bindings: R-Car Gen2 CMT0 and CMT1 bindings Daniel Lezcano
2017-08-29  9:34   ` [PATCH 5/9] devicetree: bindings: r8a73a4 and R-Car Gen2 CMT bindings Daniel Lezcano
2017-08-29  9:34   ` [PATCH 6/9] devicetree: bindings: Deprecate property, update example Daniel Lezcano
2017-08-29  9:34   ` [PATCH 7/9] devicetree: bindings: Remove unused 32-bit CMT bindings Daniel Lezcano
2017-08-29  9:34   ` [PATCH 8/9] devicetree: bindings: Remove deprecated properties Daniel Lezcano
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
2017-08-29 13:01 ` [GIT PULL] clockevents for 4.14 Daniel Lezcano
2017-08-31 13:49   ` Thomas Gleixner
2017-08-31 14:00     ` 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=bcm-kernel-feedback-list@broadcom.com \
    --cc=elfring@users.sourceforge.net \
    --cc=eric@anholt.net \
    --cc=f.fainelli@gmail.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-rpi-kernel@lists.infradead.org \
    --cc=rjui@broadcom.com \
    --cc=sbranden@broadcom.com \
    --cc=stefan.wahren@i2se.com \
    --cc=tglx@linutronix.de \
    /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

Powered by JetHome