drm/exynos: remove duplicated check for suspend
authorGustavo Padovan <gustavo.padovan@collabora.co.uk>
Thu, 16 Jul 2015 15:23:33 +0000 (12:23 -0300)
committerInki Dae <inki.dae@samsung.com>
Sun, 16 Aug 2015 01:23:34 +0000 (10:23 +0900)
The same check is placed twice in fimd/decon_update_plane(), remove
one of them.

Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Reviewed-by: Joonyoung Shim <jy0922.shim@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos7_drm_decon.c
drivers/gpu/drm/exynos/exynos_drm_fimd.c

index 1cd78b6a16350f7173f589c343285a17eeb53159..fe31e413324fc2e8a6c541910f697b521f189a3c 100644 (file)
@@ -401,9 +401,6 @@ static void decon_win_commit(struct exynos_drm_crtc *crtc, unsigned int win)
 
        plane = &ctx->planes[win];
 
-       if (ctx->suspended)
-               return;
-
        /*
         * SHADOWCON/PRTCON register is used for enabling timing.
         *
index b79f472d3a7477af1cb7a6c6cbc57148de88d30f..785101210d22ccb9a81ac39c6d7b08f7b11b200b 100644 (file)
@@ -623,9 +623,6 @@ static void fimd_win_commit(struct exynos_drm_crtc *crtc, unsigned int win)
 
        plane = &ctx->planes[win];
 
-       if (ctx->suspended)
-               return;
-
        /*
         * SHADOWCON/PRTCON register is used for enabling timing.
         *