Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cb30701b authored by Fabio Estevam's avatar Fabio Estevam Committed by Inki Dae
Browse files

drm/exynos: decon5433: Remove unnecessary platform_get_resource() error check



devm_ioremap_resource() already checks if the resource is NULL, so
remove the unnecessary platform_get_resource() error check.

Cc: Inki Dae <inki.dae@samsung.com>
Signed-off-by: default avatarFabio Estevam <fabio.estevam@nxp.com>
Reviewed-by: default avatarAndrzej Hajda <a.hajda@samsung.com>
Signed-off-by: default avatarInki Dae <inki.dae@samsung.com>
parent 35087762
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -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");