Skip to contentSkip to conversation

dmaengine: qcom: gpi: Remove unnecessary print function dev_err()

PATCH Applied Xu Wang 2 participants 2 messages Nov 16, 2021 – Nov 22, 2021

Subsystems (2)
lore
Share & tools
lore

Xu Wang

author
#0 lore raw

PATCH 1/1 dmaengine: qcom: gpi: Remove unnecessary print function dev_err()

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

---
 drivers/dma/qcom/gpi.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/dma/qcom/gpi.c +1 -3
index 1a1b7d8458c9..94f3648f7483 100644
@@ -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 */
Signature · 1 line
2.25.1
maintainer Applied
#1 lore raw
Quoted 2 lines · Xu Wang

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

Applied, thanks

Signature · 1 line
~Vinod