public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] hwrng: omap - Delete an error message in of_get_omap_rng_device_details()
@ 2020-04-04 14:56 Markus Elfring
       [not found] ` <2020040423261552036811@cmss.chinamobile.com>
  2020-04-16  6:51 ` [PATCH] " Herbert Xu
  0 siblings, 2 replies; 5+ messages in thread
From: Markus Elfring @ 2020-04-04 14:56 UTC (permalink / raw)
  To: linux-crypto, Arnd Bergmann, Deepak Saxena, Greg Kroah-Hartman,
	Herbert Xu, Matt Mackall
  Cc: LKML, kernel-janitors, Tang Bin

From: Markus Elfring <elfring@users.sourceforge.net>
Date: Sat, 4 Apr 2020 16:45:57 +0200

The function “platform_get_irq” can log an error already.
Thus omit a redundant message for the exception handling in the
calling function.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
---
 drivers/char/hw_random/omap-rng.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/drivers/char/hw_random/omap-rng.c b/drivers/char/hw_random/omap-rng.c
index 65952393e1bb..7290c603fcb8 100644
--- a/drivers/char/hw_random/omap-rng.c
+++ b/drivers/char/hw_random/omap-rng.c
@@ -392,11 +392,8 @@ static int of_get_omap_rng_device_details(struct omap_rng_dev *priv,
 	if (of_device_is_compatible(dev->of_node, "ti,omap4-rng") ||
 	    of_device_is_compatible(dev->of_node, "inside-secure,safexcel-eip76")) {
 		irq = platform_get_irq(pdev, 0);
-		if (irq < 0) {
-			dev_err(dev, "%s: error getting IRQ resource - %d\n",
-				__func__, irq);
+		if (irq < 0)
 			return irq;
-		}

 		err = devm_request_irq(dev, irq, omap4_rng_irq,
 				       IRQF_TRIGGER_NONE, dev_name(dev), priv);
--
2.26.0


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-04-16  6:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-04 14:56 [PATCH] hwrng: omap - Delete an error message in of_get_omap_rng_device_details() Markus Elfring
     [not found] ` <2020040423261552036811@cmss.chinamobile.com>
2020-04-04 16:49   ` Markus Elfring
     [not found]     ` <2020040505380926003012@cmss.chinamobile.com>
2020-04-05  5:44       ` Clarification for software development opportunities Markus Elfring
2020-04-06  6:54       ` hwrng: omap - Delete an error message in of_get_omap_rng_device_details() Markus Elfring
2020-04-16  6:51 ` [PATCH] " Herbert Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox