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

Commit 16e19741 authored by Sachin Kamat's avatar Sachin Kamat Committed by Inki Dae
Browse files

drm/exynos: Remove redundant check in exynos_drm_fimd.c file



devm_request_and_ioremap function checks the validity of the
pointer returned by platform_get_resource. Hence an additional check
in the probe function is not necessary.

Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: default avatarInki Dae <inki.dae@samsung.com>
Signed-off-by: default avatarKyungmin Park <kyungmin.park@samsung.com>
parent 7ba073cd
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -831,11 +831,6 @@ static int __devinit fimd_probe(struct platform_device *pdev)
	}

	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
	if (!res) {
		dev_err(dev, "failed to find registers\n");
		ret = -ENOENT;
		goto err_clk;
	}

	ctx->regs = devm_request_and_ioremap(&pdev->dev, res);
	if (!ctx->regs) {