diff options
author | Krzysztof Kozlowski <k.kozlowski.k@gmail.com> | 2015-05-06 20:04:46 -0400 |
---|---|---|
committer | Inki Dae <daeinki@gmail.com> | 2015-05-19 09:50:53 -0400 |
commit | 362edccc7a1395bcd05d1f2b30f47a3439ffef5c (patch) | |
tree | f8325252341bc839dae898a5b173fa82a1a7fee1 /drivers/gpu | |
parent | f3aaf7624463721af27f13cc083916c54ffbee70 (diff) |
drm/exynos: Consolidate return statements in fimd_bind()
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>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_fimd.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_fimd.c b/drivers/gpu/drm/exynos/exynos_drm_fimd.c index 5c1a148525f8..d704f2ba7179 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_fimd.c +++ b/drivers/gpu/drm/exynos/exynos_drm_fimd.c | |||
@@ -1042,12 +1042,7 @@ static int fimd_bind(struct device *dev, struct device *master, void *data) | |||
1042 | if (ctx->display) | 1042 | if (ctx->display) |
1043 | exynos_drm_create_enc_conn(drm_dev, ctx->display); | 1043 | exynos_drm_create_enc_conn(drm_dev, ctx->display); |
1044 | 1044 | ||
1045 | ret = fimd_iommu_attach_devices(ctx, drm_dev); | 1045 | return fimd_iommu_attach_devices(ctx, drm_dev); |
1046 | if (ret) | ||
1047 | return ret; | ||
1048 | |||
1049 | return 0; | ||
1050 | |||
1051 | } | 1046 | } |
1052 | 1047 | ||
1053 | static void fimd_unbind(struct device *dev, struct device *master, | 1048 | static void fimd_unbind(struct device *dev, struct device *master, |