[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <8007a07f354b9f5ff714914f3696e185078c27c3.camel@perches.com>
Date: Mon, 18 May 2020 11:03:12 -0700
From: Joe Perches <joe@...ches.com>
To: Tamseel Shams <m.shams@...sung.com>, inki.dae@...sung.com,
jy0922.shim@...sung.com, sw0312.kim@...sung.com,
kyungmin.park@...sung.com, airlied@...ux.ie, daniel@...ll.ch
Cc: dri-devel@...ts.freedesktop.org,
linux-arm-kernel@...ts.infradead.org,
linux-samsung-soc@...r.kernel.org, linux-kernel@...r.kernel.org,
shaik.ameer@...sung.com, krzk@...nel.org, alim.akhtar@...sung.com
Subject: Re: [PATCH] drm/exynos: Remove dev_err() on platform_get_irq()
failure
On Mon, 2020-05-18 at 22:57 +0530, Tamseel Shams wrote:
> 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.
trivia:
> diff --git a/drivers/gpu/drm/exynos/exynos_drm_dsi.c b/drivers/gpu/drm/exynos/exynos_drm_dsi.c
[]
> @@ -1810,7 +1810,6 @@ static int exynos_dsi_probe(struct platform_device *pdev)
>
> dsi->irq = platform_get_irq(pdev, 0);
> if (dsi->irq < 0) {
> - dev_err(dev, "failed to request dsi irq resource\n");
> return dsi->irq;
> }
You could also remove the now atypical braces
if (dsi->irq < 0)
return dsi->irq;
> diff --git a/drivers/gpu/drm/exynos/exynos_drm_rotator.c b/drivers/gpu/drm/exynos/exynos_drm_rotator.c
[]
> @@ -294,7 +294,6 @@ static int rotator_probe(struct platform_device *pdev)
>
> irq = platform_get_irq(pdev, 0);
> if (irq < 0) {
> - dev_err(dev, "failed to get irq\n");
> return irq;
> }
etc...
Powered by blists - more mailing lists