drm/exynos: Consolidate return statements in fimd_bind()
authorKrzysztof Kozlowski <k.kozlowski.k@gmail.com>
Thu, 7 May 2015 00:04:46 +0000 (09:04 +0900)
committerInki Dae <daeinki@gmail.com>
Tue, 19 May 2015 13:50:53 +0000 (22:50 +0900)
Simplify the code and remove superfluous return statement. Just return
the result of fimd_iommu_attach_devices().

Signed-off-by: Krzysztof Kozlowski <k.kozlowski.k@gmail.com>
Reviewed-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
Tested-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_fimd.c

index 5c1a148525f8db0c65d80364323a6dbf58f3cd58..d704f2ba717917b15a4a8aa21f5dafc51657e1ba 100644 (file)
@@ -1042,12 +1042,7 @@ static int fimd_bind(struct device *dev, struct device *master, void *data)
        if (ctx->display)
                exynos_drm_create_enc_conn(drm_dev, ctx->display);
 
-       ret = fimd_iommu_attach_devices(ctx, drm_dev);
-       if (ret)
-               return ret;
-
-       return 0;
-
+       return fimd_iommu_attach_devices(ctx, drm_dev);
 }
 
 static void fimd_unbind(struct device *dev, struct device *master,