]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amd/display: Remove redundant if conditions
authorIvan Lipski <ivlipski@amd.com>
Fri, 31 May 2024 18:48:41 +0000 (14:48 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 14 Jun 2024 20:17:13 +0000 (16:17 -0400)
commit223ac8b6f57a60f3262453a4bd3d3366842ced0f
treefc3bce6a9808e9b3a658cde07017aa982e77fbbc
parentdea54d186caf004da44c9b61d6ad0cb51c818cfa
drm/amd/display: Remove redundant if conditions

[WHY]
Coverity analysis flagged the two if conditions in
dcn30_dpp.c and dcn401_dpp.c as DEADCODE since they
are never true, since the variable
'program_prealpha_dealpha' is initialized at 0 and
never chagnes.

[HOW]
Removed the variable 'program_prealpha_dealpha' and
the if conditions.

Acked-by: Zaeem Mohamed <zaeem.mohamed@amd.com>
Signed-off-by: Ivan Lipski <ivlipski@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/dpp/dcn30/dcn30_dpp.c
drivers/gpu/drm/amd/display/dc/dpp/dcn401/dcn401_dpp.c