[PATCH 06/10] drm/exynos: Remove redundant NULL check in exynos_drm_rotator.c

2012-12-24 Thread Sachin Kamat
devm_request_and_ioremap API checks for NULL. Hence explicit
NULL check is not necessary. Saves some code.

Cc: Eunchul Kim 
Signed-off-by: Sachin Kamat 
---
 drivers/gpu/drm/exynos/exynos_drm_rotator.c |5 -
 1 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/drivers/gpu/drm/exynos/exynos_drm_rotator.c 
b/drivers/gpu/drm/exynos/exynos_drm_rotator.c
index 0f168449..4505163 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_rotator.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_rotator.c
@@ -655,11 +655,6 @@ static int __devinit rotator_probe(struct platform_device 
*pdev)
platform_get_device_id(pdev)->driver_data;

rot->regs_res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-   if (!rot->regs_res) {
-   dev_err(dev, "failed to find registers\n");
-   return -ENOENT;
-   }
-
rot->regs = devm_request_and_ioremap(dev, rot->regs_res);
if (!rot->regs) {
dev_err(dev, "failed to map register\n");
-- 
1.7.4.1



[PATCH 06/10] drm/exynos: Remove redundant NULL check in exynos_drm_rotator.c

2012-12-24 Thread Sachin Kamat
devm_request_and_ioremap API checks for NULL. Hence explicit
NULL check is not necessary. Saves some code.

Cc: Eunchul Kim chulspro@samsung.com
Signed-off-by: Sachin Kamat sachin.ka...@linaro.org
---
 drivers/gpu/drm/exynos/exynos_drm_rotator.c |5 -
 1 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/drivers/gpu/drm/exynos/exynos_drm_rotator.c 
b/drivers/gpu/drm/exynos/exynos_drm_rotator.c
index 0f168449..4505163 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_rotator.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_rotator.c
@@ -655,11 +655,6 @@ static int __devinit rotator_probe(struct platform_device 
*pdev)
platform_get_device_id(pdev)-driver_data;
 
rot-regs_res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-   if (!rot-regs_res) {
-   dev_err(dev, failed to find registers\n);
-   return -ENOENT;
-   }
-
rot-regs = devm_request_and_ioremap(dev, rot-regs_res);
if (!rot-regs) {
dev_err(dev, failed to map register\n);
-- 
1.7.4.1

___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel