From: Sachin Kamat Date: Mon, 24 Dec 2012 08:33:50 +0000 (+0530) Subject: drm/exynos: Remove redundant NULL check in exynos_drm_gsc.c X-Git-Tag: v3.8-rc3~6^2~3^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a8527cf5c344df60485e2c0a9196f0550550ae00;p=profile%2Fcommon%2Fkernel-common.git drm/exynos: Remove redundant NULL check in exynos_drm_gsc.c devm_request_and_ioremap API checks for NULL. Hence explicit NULL check is not necessary. Saves some code. Signed-off-by: Sachin Kamat Signed-off-by: Inki Dae --- diff --git a/drivers/gpu/drm/exynos/exynos_drm_gsc.c b/drivers/gpu/drm/exynos/exynos_drm_gsc.c index 9c6de7a..04cc46c 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_gsc.c +++ b/drivers/gpu/drm/exynos/exynos_drm_gsc.c @@ -1692,12 +1692,6 @@ static int __devinit gsc_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");