drm/exynos: Remove dev_err() on platform_get_irq() failure
authorTamseel Shams <m.shams@samsung.com>
Thu, 21 May 2020 14:22:10 +0000 (19:52 +0530)
committerInki Dae <inki.dae@samsung.com>
Mon, 29 Jun 2020 00:38:41 +0000 (09:38 +0900)
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.

Signed-off-by: Tamseel Shams <m.shams@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_g2d.c

index fcee33a..03be314 100644 (file)
@@ -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;
        }