]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amd/display: Remove redundant condition in VBA 314 func
authorIvan Lipski <ivlipski@amd.com>
Tue, 4 Jun 2024 14:28:05 +0000 (10:28 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 14 Jun 2024 20:18:54 +0000 (16:18 -0400)
commit2094401053dfbf7e8f74430c6c6ce666bce1d805
treecb98b5042d1104e012073150caa14da722abef28
parent9061707976c68899cf2f3b9117c5bbcee8e6872c
drm/amd/display: Remove redundant condition in VBA 314 func

[WHY]
Coverity analysis this conditional code as DEADCODE.
The conditional statement is never true since
'MacroTileSizeBytes' is either 256 or 65536. Thus, the
code inside is the conditional statement is never reached.

[HOW]
Removed the conditional statement.

Reviewed-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Reviewed-by: Alex Hung <alex.hung@amd.com>
Acked-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: Ivan Lipski <ivlipski@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dml/dcn314/display_mode_vba_314.c