Linux ARM-MSM sub-architecture
 help / color / mirror / Atom feed
* [PATCH] dmaengine: qcom: gpi: Remove unnecessary print function dev_err()
@ 2021-11-16  1:33 Xu Wang
  2021-11-22  6:59 ` Vinod Koul
  0 siblings, 1 reply; 2+ messages in thread
From: Xu Wang @ 2021-11-16  1:33 UTC (permalink / raw)
  To: agross, bjorn.andersson, vkoul; +Cc: linux-arm-msm, dmaengine, linux-kernel

The print function dev_err() is redundant because
platform_get_irq() already prints an error.

Signed-off-by: Xu Wang <vulab@iscas.ac.cn>
---
 drivers/dma/qcom/gpi.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/dma/qcom/gpi.c b/drivers/dma/qcom/gpi.c
index 1a1b7d8458c9..94f3648f7483 100644
--- a/drivers/dma/qcom/gpi.c
+++ b/drivers/dma/qcom/gpi.c
@@ -2206,10 +2206,8 @@ static int gpi_probe(struct platform_device *pdev)
 
 		/* set up irq */
 		ret = platform_get_irq(pdev, i);
-		if (ret < 0) {
-			dev_err(gpi_dev->dev, "platform_get_irq failed for %d:%d\n", i, ret);
+		if (ret < 0)
 			return ret;
-		}
 		gpii->irq = ret;
 
 		/* set up channel specific register info */
-- 
2.25.1


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

end of thread, other threads:[~2021-11-22  6:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-16  1:33 [PATCH] dmaengine: qcom: gpi: Remove unnecessary print function dev_err() Xu Wang
2021-11-22  6:59 ` Vinod Koul

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