Skip to contentSkip to conversation

drm/omap: dmm_tiler:Remove the print function dev_err()

PATCH New [email protected] 1 participant 1 message Aug 10, 2022

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/omap: dmm_tiler:Remove the print function dev_err()

From: ye xingchen <[email protected]>

From the coccinelle check:

./drivers/gpu/drm/omapdrm/omap_dmm_tiler.c
Error:line 817 is redundant because platform_get_irq() already prints an error

So,remove the unnecessary print function dev_err()

---
 drivers/gpu/drm/omapdrm/omap_dmm_tiler.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/gpu/drm/omapdrm/omap_dmm_tiler.c +1 -3
index ac869acf80ea..61a27dd7392e 100644
@@ -813,10 +813,8 @@ static int omap_dmm_probe(struct platform_device *dev)
 	}
 
 	omap_dmm->irq = platform_get_irq(dev, 0);
-	if (omap_dmm->irq < 0) {
-		dev_err(&dev->dev, "failed to get IRQ resource\n");
+	if (omap_dmm->irq < 0)
 		goto fail;
-	}
 
 	omap_dmm->dev = &dev->dev;
 
Signature · 1 line
2.25.1