public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2/3] i2c: qup: Remove dev_err() log after platform_get_irq*() failure
@ 2019-09-16 18:58 Saiyam Doshi
  2019-09-17 15:28 ` Markus Elfring
  0 siblings, 1 reply; 3+ messages in thread
From: Saiyam Doshi @ 2019-09-16 18:58 UTC (permalink / raw)
  To: agross; +Cc: linux-arm-msm, linux-i2c, linux-kernel

The debug message after platform_get_irq() failure is redundant
because platform_get_irq() already prints an error. Thus remove it.

The semantic patch that makes this report is available
in scripts/coccinelle/api/platform_get_irq.cocci.

Found using - http://coccinelle.lip6.fr/

Signed-off-by: Saiyam Doshi <saiyamdoshi.in@gmail.com>
---
 drivers/i2c/busses/i2c-qup.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/i2c/busses/i2c-qup.c b/drivers/i2c/busses/i2c-qup.c
index 5519c19bfd9c..23c4893512b2 100644
--- a/drivers/i2c/busses/i2c-qup.c
+++ b/drivers/i2c/busses/i2c-qup.c
@@ -1767,7 +1767,6 @@ static int qup_i2c_probe(struct platform_device *pdev)

 	qup->irq = platform_get_irq(pdev, 0);
 	if (qup->irq < 0) {
-		dev_err(qup->dev, "No IRQ defined\n");
 		return qup->irq;
 	}

--
2.20.1


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

end of thread, other threads:[~2019-09-17 16:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-09-16 18:58 [PATCH 2/3] i2c: qup: Remove dev_err() log after platform_get_irq*() failure Saiyam Doshi
2019-09-17 15:28 ` Markus Elfring
2019-09-17 16:25   ` Saiyam Doshi

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