Commit 3aea49fd authored by José Roberto de Souza's avatar José Roberto de Souza Committed by Jani Nikula

drm/i915/display/psr: Fix cppcheck warnings

Fix redundant condition, caught in cppcheck by kernel test robot.
Reported-by: default avatarkernel test robot <lkp@intel.com>
Cc: Gwan-gyeong Mun <gwan-gyeong.mun@intel.com>
Fixes: b64d6c51 ("drm/i915/display: Support PSR Multiple Instances")
Signed-off-by: default avatarJosé Roberto de Souza <jose.souza@intel.com>
Reviewed-by: default avatarHarish Chegondi <harish.chegondi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210409231738.238682-1-jose.souza@intel.com
(cherry picked from commit 1884b579)
Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
parent 36c119c1
...@@ -1519,8 +1519,7 @@ void intel_psr_wait_for_idle(const struct intel_crtc_state *new_crtc_state) ...@@ -1519,8 +1519,7 @@ void intel_psr_wait_for_idle(const struct intel_crtc_state *new_crtc_state)
u32 psr_status; u32 psr_status;
mutex_lock(&intel_dp->psr.lock); mutex_lock(&intel_dp->psr.lock);
if (!intel_dp->psr.enabled || if (!intel_dp->psr.enabled || intel_dp->psr.psr2_enabled) {
(intel_dp->psr.enabled && intel_dp->psr.psr2_enabled)) {
mutex_unlock(&intel_dp->psr.lock); mutex_unlock(&intel_dp->psr.lock);
continue; continue;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment