From 83ff89732a5b1d9107920f7933b4ecb6bdfc3e6c Mon Sep 17 00:00:00 2001 From: Samantha Tran Date: Mon, 27 Jan 2020 16:02:40 -0800 Subject: [PATCH] disp: msm: sde: remove check comparing encoder's crtc and crtc This change removes the check comparing encoder's crtc to the crtc passed in. This check was required up until commit 70486d209c5a ("disp: msm: sde: remove vblank cache logic"). Now that iteration is only happening over encoders in the encoder mask, there is no need to check for a matching crtc to ensure it is valid. Change-Id: I4ee08061e6c8679fe03f42cf2f889704c99526e5 Signed-off-by: Samantha Tran --- msm/sde/sde_crtc.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/msm/sde/sde_crtc.c b/msm/sde/sde_crtc.c index 31abd922b592..7ed658d35868 100644 --- a/msm/sde/sde_crtc.c +++ b/msm/sde/sde_crtc.c @@ -3676,9 +3676,6 @@ static int _sde_crtc_vblank_enable_no_lock( drm_for_each_encoder_mask(enc, crtc->dev, crtc->state->encoder_mask) { - if (enc->crtc != crtc) - continue; - SDE_EVT32(DRMID(&sde_crtc->base), DRMID(enc), enable, sde_crtc->enabled); @@ -3688,9 +3685,6 @@ static int _sde_crtc_vblank_enable_no_lock( } else { drm_for_each_encoder_mask(enc, crtc->dev, crtc->state->encoder_mask) { - if (enc->crtc != crtc) - continue; - SDE_EVT32(DRMID(&sde_crtc->base), DRMID(enc), enable, sde_crtc->enabled);