[Intel-gfx] [PATCH 2/3] drm/i915: Remove dead code from skl_pipe_wm_get_hw_state()

José Roberto de Souza jose.souza at intel.com
Fri Feb 12 18:22:00 UTC 2021


There is nothing else to be executed after this if block.

Signed-off-by: José Roberto de Souza <jose.souza at intel.com>
---
 drivers/gpu/drm/i915/intel_pm.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c
index 8c42fa51c0f6..8cc67f9c4e58 100644
--- a/drivers/gpu/drm/i915/intel_pm.c
+++ b/drivers/gpu/drm/i915/intel_pm.c
@@ -6182,9 +6182,6 @@ void skl_pipe_wm_get_hw_state(struct intel_crtc *crtc,
 
 		skl_wm_level_from_reg_val(val, &wm->trans_wm);
 	}
-
-	if (!crtc->active)
-		return;
 }
 
 void skl_wm_get_hw_state(struct drm_i915_private *dev_priv)
-- 
2.30.1



More information about the Intel-gfx mailing list