drm/amd/display: Remove always true condition
authorAlex Hung <alex.hung@amd.com>
Sat, 15 Jun 2024 01:10:40 +0000 (19:10 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 27 Jun 2024 21:10:38 +0000 (17:10 -0400)
commit4de670dcdef04feee864a110dd6c1737f29f6dd0
treec5f32e733a3d5e48b6880e096ce6dae36fdc5b4c
parent673f816b9e1e92d1f70e1bf5f21b531e0ff9ad6c
drm/amd/display: Remove always true condition

[WHAT & HOW]
advanced_pstate_switching was initialized to false and never assigned to
another value; as a result !advanced_pstate_switching is always true and
should be removed.

This fixes 2 DEADCODE issues reported by Coverity.

Reviewed-by: Rodrigo Siqueira <rodrigo.siqueira@amd.com>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dml2/dml2_wrapper.c