[PATCH 2/7] drm/exynos: decon5433: Remove unnecessary platform_get_resource() error check
Andrzej Hajda
a.hajda at samsung.com
Mon Dec 18 13:28:52 UTC 2017
On 18.12.2017 14:02, Fabio Estevam wrote:
> From: Fabio Estevam <fabio.estevam at nxp.com>
>
> devm_ioremap_resource() already checks if the resource is NULL, so
> remove the unnecessary platform_get_resource() error check.
>
> Cc: Inki Dae <inki.dae at samsung.com>
> Signed-off-by: Fabio Estevam <fabio.estevam at nxp.com>
Reviewed-by: Andrzej Hajda <a.hajda at samsung.com>
--
Regards
Andrzej
> ---
> drivers/gpu/drm/exynos/exynos5433_drm_decon.c | 5 -----
> 1 file changed, 5 deletions(-)
>
> diff --git a/drivers/gpu/drm/exynos/exynos5433_drm_decon.c b/drivers/gpu/drm/exynos/exynos5433_drm_decon.c
> index 6be5b53..1d509a8 100644
> --- a/drivers/gpu/drm/exynos/exynos5433_drm_decon.c
> +++ b/drivers/gpu/drm/exynos/exynos5433_drm_decon.c
> @@ -744,11 +744,6 @@ static int exynos5433_decon_probe(struct platform_device *pdev)
> }
>
> res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
> - if (!res) {
> - dev_err(dev, "cannot find IO resource\n");
> - return -ENXIO;
> - }
> -
> ctx->addr = devm_ioremap_resource(dev, res);
> if (IS_ERR(ctx->addr)) {
> dev_err(dev, "ioremap failed\n");
More information about the dri-devel
mailing list