aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2012-12-24 03:33:44 -0500
committerInki Dae <inki.dae@samsung.com>2013-01-04 01:54:34 -0500
commit3fb6922eae7e9c8be5d6b305b37c7495ffbf0e01 (patch)
tree881f1d4c901f2bd50ca270b0efe025f16d23e7cc /drivers
parent87acdde56d4cbf9c4b6a4d278434333bd613fd16 (diff)
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: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Inki Dae <inki.dae@samsung.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/drm/exynos/exynos_drm_fimc.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_fimc.c b/drivers/gpu/drm/exynos/exynos_drm_fimc.c
index ad0e4abc2b29..96bfdd60875a 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_fimc.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_fimc.c
@@ -1800,12 +1800,6 @@ static int __devinit fimc_probe(struct platform_device *pdev)
1800 1800
1801 /* resource memory */ 1801 /* resource memory */
1802 ctx->regs_res = platform_get_resource(pdev, IORESOURCE_MEM, 0); 1802 ctx->regs_res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
1803 if (!ctx->regs_res) {
1804 dev_err(dev, "failed to find registers.\n");
1805 ret = -ENOENT;
1806 goto err_clk;
1807 }
1808
1809 ctx->regs = devm_request_and_ioremap(dev, ctx->regs_res); 1803 ctx->regs = devm_request_and_ioremap(dev, ctx->regs_res);
1810 if (!ctx->regs) { 1804 if (!ctx->regs) {
1811 dev_err(dev, "failed to map registers.\n"); 1805 dev_err(dev, "failed to map registers.\n");