All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] regulator: mt6360: remove redundant error print
@ 2021-03-23 12:22 ` Jian Dong
  0 siblings, 0 replies; 12+ messages in thread
From: Jian Dong @ 2021-03-23 12:22 UTC (permalink / raw)
  To: matthias.bgg, broonie
  Cc: linux-kernel, linux-arm-kernel, linux-mediatek, huyue2, Jian Dong

From: Jian Dong <dongjian@yulong.com>

fixes coccicheck warning:

drivers/regulator/mt6360-regulator.c:384:3-10: line 384 is
redundant because platform_get_irq() already prints an error

in fact, it is not platform_get_irq but platform_get_irq_byname print error

Signed-off-by: Jian Dong <dongjian@yulong.com>
---
 drivers/regulator/mt6360-regulator.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/regulator/mt6360-regulator.c b/drivers/regulator/mt6360-regulator.c
index 947350d..178180c 100644
--- a/drivers/regulator/mt6360-regulator.c
+++ b/drivers/regulator/mt6360-regulator.c
@@ -380,10 +380,8 @@ static int mt6360_regulator_irq_register(struct platform_device *pdev,
 		const struct mt6360_irq_mapping *irq_desc = tbls + i;
 
 		irq = platform_get_irq_byname(pdev, irq_desc->name);
-		if (irq < 0) {
-			dev_err(&pdev->dev, "Fail to get %s irq\n", irq_desc->name);
+		if (irq < 0)
 			return irq;
-		}
 
 		ret = devm_request_threaded_irq(&pdev->dev, irq, NULL, irq_desc->handler,
 					IRQF_ONESHOT, irq_desc->name, rdev);
-- 
1.9.1



_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek

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

end of thread, other threads:[~2021-03-24 23:41 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-03-23 12:22 [PATCH] regulator: mt6360: remove redundant error print Jian Dong
2021-03-23 12:22 ` Jian Dong
2021-03-23 12:22 ` Jian Dong
2021-03-23 17:16 ` Mark Brown
2021-03-23 17:16   ` Mark Brown
2021-03-23 17:16   ` Mark Brown
2021-03-24  1:24   ` Jian Dong
2021-03-24  1:24     ` Jian Dong
2021-03-24  1:24     ` Jian Dong
2021-03-24 23:39 ` Mark Brown
2021-03-24 23:39   ` Mark Brown
2021-03-24 23:39   ` Mark Brown

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.