All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] i2c: busses: Omit superfluous error message in img_i2c_probe()
@ 2020-04-16 13:53 Tang Bin
  0 siblings, 0 replies; only message in thread
From: Tang Bin @ 2020-04-16 13:53 UTC (permalink / raw)
  To: wsa, manivannan.sadhasivam, thor.thayer, rrichter, bjorn.andersson
  Cc: linux-i2c, linux-kernel, Tang Bin

In the function img_i2c_probe(), when get irq failed, the function
platform_get_irq() logs an error message, so remove redundant message
here.

Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com>
---
 drivers/i2c/busses/i2c-img-scb.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/i2c/busses/i2c-img-scb.c b/drivers/i2c/busses/i2c-img-scb.c
index c937ea7..98a8930 100644
--- a/drivers/i2c/busses/i2c-img-scb.c
+++ b/drivers/i2c/busses/i2c-img-scb.c
@@ -1342,10 +1342,8 @@ static int img_i2c_probe(struct platform_device *pdev)
 		return PTR_ERR(i2c->base);
 
 	irq = platform_get_irq(pdev, 0);
-	if (irq < 0) {
-		dev_err(&pdev->dev, "can't get irq number\n");
+	if (irq < 0)
 		return irq;
-	}
 
 	i2c->sys_clk = devm_clk_get(&pdev->dev, "sys");
 	if (IS_ERR(i2c->sys_clk)) {
-- 
2.7.4




^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-04-16 15:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-16 13:53 [PATCH] i2c: busses: Omit superfluous error message in img_i2c_probe() Tang Bin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.