drm/exynos: Remove redundant NULL check
authorSachin Kamat <sachin.kamat@linaro.org>
Mon, 24 Dec 2012 08:33:44 +0000 (14:03 +0530)
committerInki Dae <inki.dae@samsung.com>
Fri, 4 Jan 2013 06:54:34 +0000 (15:54 +0900)
devm_request_and_ioremap API checks for NULL. Hence explicit
NULL check is not necessary. Saves some code.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_fimc.c

index ad0e4abc2b2942ad3d8c7e820a9fb117ec14914a..96bfdd60875a0b399c2ade7d95b139764241e08b 100644 (file)
@@ -1800,12 +1800,6 @@ static int __devinit fimc_probe(struct platform_device *pdev)
 
        /* resource memory */
        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);
        if (!ctx->regs) {
                dev_err(dev, "failed to map registers.\n");