drm/amd/display: Remove always-false branches
authorAlex Hung <alex.hung@amd.com>
Wed, 18 Sep 2024 21:33:27 +0000 (15:33 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 1 Oct 2024 21:37:33 +0000 (17:37 -0400)
commit28d2a14ac0a3ff4143d3cbb265a7ce4801f396d3
treef42c12eaf16462171ddeb84bb9d0997f3c2d1894
parent70d98a20386e778177c3c3d0baa1a5fa9e60f2ae
drm/amd/display: Remove always-false branches

[WHAT & HOW]
MacroTileSizeBytes is set to either 256 or 65535 and it is never
4096. Its branch is not taken, and should be removed. Similarly,
mode_422 is always 0 and thus ppe will always be 1. The ternary
operator 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>
Signed-off-by: Fangzhi Zuo <jerry.zuo@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/dml/dcn30/display_mode_vba_30.c
drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.c