| 5d1608a8 | 31-May-2024 |
Ivan Lipski <[email protected]> |
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' i
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 <[email protected]> Acked-by: Zaeem Mohamed <[email protected]> Tested-by: Daniel Wheeler <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
show more ...
|
| 2b6c4a4b | 11-Apr-2024 |
Rodrigo Siqueira <[email protected]> |
drm/amd/display: Ensure that dmcub support flag is set for DCN20
In the DCN20 resource initialization, ensure that DMCUB support starts configured as true.
Signed-off-by: Rodrigo Siqueira <Rodrigo.
drm/amd/display: Ensure that dmcub support flag is set for DCN20
In the DCN20 resource initialization, ensure that DMCUB support starts configured as true.
Signed-off-by: Rodrigo Siqueira <[email protected]> Acked-by: Aurabindo Pillai <[email protected]> Tested-by: Daniel Wheeler <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
show more ...
|