Skip to content

Commit 3aea49f

Browse files
zehortigozajnikula
authored andcommitted
drm/i915/display/psr: Fix cppcheck warnings
Fix redundant condition, caught in cppcheck by kernel test robot. Reported-by: kernel test robot <[email protected]> Cc: Gwan-gyeong Mun <[email protected]> Fixes: b64d6c5 ("drm/i915/display: Support PSR Multiple Instances") Signed-off-by: José Roberto de Souza <[email protected]> Reviewed-by: Harish Chegondi <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] (cherry picked from commit 1884b57) Signed-off-by: Jani Nikula <[email protected]>
1 parent 36c119c commit 3aea49f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/gpu/drm/i915/display/intel_psr.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1519,8 +1519,7 @@ void intel_psr_wait_for_idle(const struct intel_crtc_state *new_crtc_state)
15191519
u32 psr_status;
15201520

15211521
mutex_lock(&intel_dp->psr.lock);
1522-
if (!intel_dp->psr.enabled ||
1523-
(intel_dp->psr.enabled && intel_dp->psr.psr2_enabled)) {
1522+
if (!intel_dp->psr.enabled || intel_dp->psr.psr2_enabled) {
15241523
mutex_unlock(&intel_dp->psr.lock);
15251524
continue;
15261525
}

0 commit comments

Comments
 (0)