[PATCH 6/9] drm/exynos: remove duplicated check for suspend

Gustavo Padovan gustavo at padovan.org
Wed Jun 3 07:30:29 PDT 2015


From: Gustavo Padovan <gustavo.padovan at collabora.co.uk>

The same check is place twice in fimd/decon_update_plane(), remove
one of them.

Signed-off-by: Gustavo Padovan <gustavo.padovan at collabora.co.uk>
---
 drivers/gpu/drm/exynos/exynos7_drm_decon.c | 3 ---
 drivers/gpu/drm/exynos/exynos_drm_fimd.c   | 3 ---
 2 files changed, 6 deletions(-)

diff --git a/drivers/gpu/drm/exynos/exynos7_drm_decon.c b/drivers/gpu/drm/exynos/exynos7_drm_decon.c
index acbb712..b773a48 100644
--- a/drivers/gpu/drm/exynos/exynos7_drm_decon.c
+++ b/drivers/gpu/drm/exynos/exynos7_drm_decon.c
@@ -403,9 +403,6 @@ static void decon_update_plane(struct exynos_drm_crtc *crtc,
 	unsigned int last_y;
 	unsigned int win = plane->zpos;
 
-	if (ctx->suspended)
-		return;
-
 	/* If suspended, enable this on resume */
 	if (ctx->suspended) {
 		plane->resume = true;
diff --git a/drivers/gpu/drm/exynos/exynos_drm_fimd.c b/drivers/gpu/drm/exynos/exynos_drm_fimd.c
index 5a3f9f2..f586002 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_fimd.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_fimd.c
@@ -627,9 +627,6 @@ static void fimd_update_plane(struct exynos_drm_crtc *crtc,
 	unsigned int last_x, last_y, buf_offsize, line_size;
 	unsigned int win = plane->zpos;
 
-	if (ctx->suspended)
-		return;
-
 	/* If suspended, enable this on resume */
 	if (ctx->suspended) {
 		plane->resume = true;
-- 
2.1.0



More information about the dri-devel mailing list