linux/drivers/gpu/drm/amd/display
Ivan Lipski 5d1608a81e drm/amd/display: Remove redundant ternary operation
[WHY]
Coverity analysis flagged this ternary operation as
DEADCODE.

Since 'total_y_free_entry' is initialized as 0x200 and
'total_c_free_entry' is initialized as 0x140, and they
never change values before the ternary operator, so
'total_y_free_entry' is always greater 'total_c_free_entry',
'so small_free_entry' is always set to 'total_c_free_entry'.

[HOW]
Replace the ternary operator with the variable declaration.

Signed-off-by: Ivan Lipski <ivlipski@amd.com>
Acked-by: Zaeem Mohamed <zaeem.mohamed@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2024-06-14 16:17:13 -04:00
..
amdgpu_dm drm/amd/display: Set default brightness according to ACPI 2024-06-14 16:17:11 -04:00
dc drm/amd/display: Remove redundant ternary operation 2024-06-14 16:17:13 -04:00
dmub drm/amd/display: Replay low hz 2024-06-14 16:17:13 -04:00
include drm/amd/display: fix graphics_object_id size 2024-05-29 14:48:31 -04:00
modules drm/amd/display: Introduce deferred Replay coasting vtotal update 2024-06-14 15:34:02 -04:00
Kconfig drm/amd/display: Fix invalid Copyright notice 2024-05-02 16:18:16 -04:00
Makefile drm/amd/display: Refactor HUBP into component folder. 2024-05-08 15:17:03 -04:00