All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] drm/fsl-dcu: Remove unneeded NULL check
@ 2016-11-16 15:38 Fabio Estevam
  2016-11-16 15:38 ` [PATCH 2/2] drm/fsl-dcu: Propagate the real error code Fabio Estevam
  2016-11-29  1:17 ` [PATCH 1/2] drm/fsl-dcu: Remove unneeded NULL check Stefan Agner
  0 siblings, 2 replies; 3+ messages in thread
From: Fabio Estevam @ 2016-11-16 15:38 UTC (permalink / raw)
  To: stefan; +Cc: Fabio Estevam, dri-devel

devm_ioremap_resource() performs NULL check for the 'res' argument,
so remove the unneeded check.

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
---
 drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c | 5 -----
 1 file changed, 5 deletions(-)

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 0b0d1cb..812a211 100644
--- a/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c
+++ b/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c
@@ -336,11 +336,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);
-- 
2.7.4

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-11-29  1:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-16 15:38 [PATCH 1/2] drm/fsl-dcu: Remove unneeded NULL check Fabio Estevam
2016-11-16 15:38 ` [PATCH 2/2] drm/fsl-dcu: Propagate the real error code Fabio Estevam
2016-11-29  1:17 ` [PATCH 1/2] drm/fsl-dcu: Remove unneeded NULL check Stefan Agner

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.