Skip to contentSkip to conversation

drm/exynos: Remove dev_err() on platform_get_irq() failure

PATCH In review Tamseel Shams 2 participants 2 messages May 21, 2020 – Jun 1, 2020 1 message not in the archive

Subsystems (3)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): CGME20200521143647epcas5p279d486b29125419c67ff96e0b5b1454e@epcas5p2.samsung.com

#1 lore raw

PATCH v3 1/1 drm/exynos: Remove dev_err() on platform_get_irq() failure

platform_get_irq() will call dev_err() itself on failure, so there is no need for the driver to also do this. This is detected by coccinelle.

---
- Changes since v2:
* Addressed Inki Dae comments

 drivers/gpu/drm/exynos/exynos_drm_g2d.c | 1 -
 1 file changed, 1 deletion(-)
drivers/gpu/drm/exynos/exynos_drm_g2d.c +0 -1
index fcee33a43aca..03be31427181 100644
@@ -1498,7 +1498,6 @@ static int g2d_probe(struct platform_device *pdev)
 
 	g2d->irq = platform_get_irq(pdev, 0);
 	if (g2d->irq < 0) {
-		dev_err(dev, "failed to get irq\n");
 		ret = g2d->irq;
 		goto err_put_clk;
 	}
Signature · 1 line
2.17.1
maintainer
#2 lore raw

20. 5. 21. 오후 11:22에 Tamseel Shams 이(가) 쓴 글:

Quoted 3 lines

platform_get_irq() will call dev_err() itself on failure, so there is no need for the driver to also do this. This is detected by coccinelle.

Picked it up.

Thanks,
Inki Dae

Quoted 15 lines

---
- Changes since v2:
* Addressed Inki Dae comments

 drivers/gpu/drm/exynos/exynos_drm_g2d.c | 1 -
 1 file changed, 1 deletion(-)
drivers/gpu/drm/exynos/exynos_drm_g2d.c +0 -0
index fcee33a43aca..03be31427181 100644

drivers/gpu/drm/exynos/exynos_drm_g2d.c static int g2d_probe(struct platform_device *pdev) · line 1503

Quoted 7 lines
drivers/gpu/drm/exynos/exynos_drm_g2d.c +0 -1
@@ -1498,7 +1498,6 @@ static int g2d_probe(struct platform_device *pdev)
 
 	g2d->irq = platform_get_irq(pdev, 0);
 	if (g2d->irq < 0) {
-		dev_err(dev, "failed to get irq\n");
 		ret = g2d->irq;
 		goto err_put_clk;
 	}

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel