drm/exynos: Remove dev_err() on platform_get_irq() failure
Subsystems (3)
A message that is not in the archive (sent off-list or not yet received): CGME20200521143647epcas5p279d486b29125419c67ff96e0b5b1454e@epcas5p2.samsung.com
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
@@ -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
Inki Dae
maintainer20. 5. 21. 오후 11:22에 Tamseel Shams 이(가) 쓴 글:
Quoted 3 lines
platform_get_irq()will calldev_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
Signed-off-by Tamseel Shams <[email protected]>---
- Changes since v2:
* Addressed Inki Dae commentsdrivers/gpu/drm/exynos/exynos_drm_g2d.c | 1 - 1 file changed, 1 deletion(-)drivers/gpu/drm/exynos/exynos_drm_g2d.c +0
-0
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