drm/i915/display/psr: Fix cppcheck warnings

Fix redundant condition, caught in cppcheck by kernel test robot.

Reported-by: kernel test robot <lkp@intel.com>
Cc: Gwan-gyeong Mun <gwan-gyeong.mun@intel.com>
Fixes: b64d6c51380b ("drm/i915/display: Support PSR Multiple Instances")
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Reviewed-by: Harish Chegondi <harish.chegondi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210409231738.238682-1-jose.souza@intel.com
(cherry picked from commit 1884b579c0cfbb52a92462184406558ac633cafb)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>

authored by

José Roberto de Souza and committed by
Jani Nikula
3aea49fd 36c119c1

+1 -2
+1 -2
drivers/gpu/drm/i915/display/intel_psr.c
··· 1519 1519 u32 psr_status; 1520 1520 1521 1521 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) { 1524 1523 mutex_unlock(&intel_dp->psr.lock); 1525 1524 continue; 1526 1525 }