Commit 3fb6922e authored by Sachin Kamat's avatar Sachin Kamat Committed by Inki Dae

drm/exynos: Remove redundant NULL check

devm_request_and_ioremap API checks for NULL. Hence explicit
NULL check is not necessary. Saves some code.
Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: default avatarInki Dae <inki.dae@samsung.com>
parent 87acdde5
...@@ -1800,12 +1800,6 @@ static int __devinit fimc_probe(struct platform_device *pdev) ...@@ -1800,12 +1800,6 @@ static int __devinit fimc_probe(struct platform_device *pdev)
/* resource memory */ /* resource memory */
ctx->regs_res = platform_get_resource(pdev, IORESOURCE_MEM, 0); ctx->regs_res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
if (!ctx->regs_res) {
dev_err(dev, "failed to find registers.\n");
ret = -ENOENT;
goto err_clk;
}
ctx->regs = devm_request_and_ioremap(dev, ctx->regs_res); ctx->regs = devm_request_and_ioremap(dev, ctx->regs_res);
if (!ctx->regs) { if (!ctx->regs) {
dev_err(dev, "failed to map registers.\n"); dev_err(dev, "failed to map registers.\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment