From: Fabio Estevam Date: Wed, 16 Nov 2016 15:38:32 +0000 (-0200) Subject: drm/fsl-dcu: Remove unneeded NULL check X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=54ac0a0f72cdf66634c1321addd32eaadb0f022d;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git drm/fsl-dcu: Remove unneeded NULL check devm_ioremap_resource() performs NULL check for the 'res' argument, so remove the unneeded check. Signed-off-by: Fabio Estevam Signed-off-by: Stefan Agner --- diff --git a/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c b/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c index f8313f2b113a..2ecbb4942b80 100644 --- a/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c +++ b/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c @@ -337,11 +337,6 @@ static int fsl_dcu_drm_probe(struct platform_device *pdev) fsl_dev->soc = id->data; res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - if (!res) { - dev_err(dev, "could not get memory IO resource\n"); - return -ENODEV; - } - base = devm_ioremap_resource(dev, res); if (IS_ERR(base)) { ret = PTR_ERR(base);