diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2012-12-24 03:33:50 -0500 |
---|---|---|
committer | Inki Dae <inki.dae@samsung.com> | 2013-01-04 01:54:35 -0500 |
commit | a8527cf5c344df60485e2c0a9196f0550550ae00 (patch) | |
tree | 05e0363f27c9b965045a6279d5d981747ce2a4d6 /drivers/gpu/drm/exynos | |
parent | cfdee8f421759c4cf173291977b71757ff4eae27 (diff) |
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 <sachin.kamat@linaro.org>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Diffstat (limited to 'drivers/gpu/drm/exynos')
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_gsc.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_gsc.c b/drivers/gpu/drm/exynos/exynos_drm_gsc.c index 9c6de7a5944b..04cc46c37c7c 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) | |||
1692 | 1692 | ||
1693 | /* resource memory */ | 1693 | /* resource memory */ |
1694 | ctx->regs_res = platform_get_resource(pdev, IORESOURCE_MEM, 0); | 1694 | ctx->regs_res = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
1695 | if (!ctx->regs_res) { | ||
1696 | dev_err(dev, "failed to find registers.\n"); | ||
1697 | ret = -ENOENT; | ||
1698 | goto err_clk; | ||
1699 | } | ||
1700 | |||
1701 | ctx->regs = devm_request_and_ioremap(dev, ctx->regs_res); | 1695 | ctx->regs = devm_request_and_ioremap(dev, ctx->regs_res); |
1702 | if (!ctx->regs) { | 1696 | if (!ctx->regs) { |
1703 | dev_err(dev, "failed to map registers.\n"); | 1697 | dev_err(dev, "failed to map registers.\n"); |