projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f3aaf76
)
drm/exynos: Consolidate return statements in fimd_bind()
author
Krzysztof Kozlowski
<
[email protected]
>
Thu, 7 May 2015 00:04:46 +0000
(09:04 +0900)
committer
Inki Dae
<
[email protected]
>
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 <
[email protected]
>
Reviewed-by: Javier Martinez Canillas <
[email protected]
>
Tested-by: Javier Martinez Canillas <
[email protected]
>
Signed-off-by: Inki Dae <
[email protected]
>
drivers/gpu/drm/exynos/exynos_drm_fimd.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/exynos/exynos_drm_fimd.c
b/drivers/gpu/drm/exynos/exynos_drm_fimd.c
index 5c1a148525f8db0c65d80364323a6dbf58f3cd58..d704f2ba717917b15a4a8aa21f5dafc51657e1ba 100644
(file)
--- 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)
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,