diff options
| author | Ivan Lipski <ivlipski@amd.com> | 2024-05-31 16:05:27 -0400 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2024-06-14 16:17:13 -0400 |
| commit | 5d1608a81e01740e8b51ceb5079a5fb3ffbffe3a (patch) | |
| tree | 09147441ea66d63bf18b943831ab1cfa6532713f /tools/perf/scripts/python | |
| parent | 3c6ad7320b32fc5de1cd9a5b092dc1d5a3cd0348 (diff) | |
| download | linux-5d1608a81e01740e8b51ceb5079a5fb3ffbffe3a.tar.gz linux-5d1608a81e01740e8b51ceb5079a5fb3ffbffe3a.zip | |
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>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
