drm/i915: Remove dead code from skl_pipe_wm_get_hw_state()
authorJosé Roberto de Souza <jose.souza@intel.com>
Fri, 12 Feb 2021 18:22:00 +0000 (10:22 -0800)
committerJosé Roberto de Souza <jose.souza@intel.com>
Wed, 17 Feb 2021 17:33:31 +0000 (09:33 -0800)
There is nothing else to be executed after this if block.

Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210212182201.155043-2-jose.souza@intel.com
drivers/gpu/drm/i915/intel_pm.c

index 8c42fa51c0f6d6ec151adb7e83e119b3c594b3d6..8cc67f9c4e586c3dea49e9304c071762b3dcbcf9 100644 (file)
@@ -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)