drm/amd/display: Remove duplicate 'update_idle_uclk' in dcn401 clk_mgr code
[WHY] The coverity analysis flagged this if expression as it contains a 'CONSTANT_EXPRESSION_RESULT': 'update_idle_uclk' is 'ORd' with itself. [HOW] Removed the duplicate 'update_idle_uclk'. Reviewed-by: Alex Hung <alex.hung@amd.com> 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>
This commit is contained in:
committed by
Alex Deucher
parent
1b51220dc2
commit
0eea12b9bd
@@ -940,7 +940,7 @@ static unsigned int dcn401_build_update_bandwidth_clocks_sequence(
|
||||
}
|
||||
|
||||
/* CLK_MGR401_UPDATE_IDLE_HARDMINS */
|
||||
if ((update_idle_uclk || update_idle_uclk) && is_idle_dpm_enabled) {
|
||||
if (update_idle_uclk && is_idle_dpm_enabled) {
|
||||
block_sequence[num_steps].params.update_idle_hardmin_params.uclk_mhz = idle_uclk_mhz;
|
||||
block_sequence[num_steps].params.update_idle_hardmin_params.fclk_mhz = idle_fclk_mhz;
|
||||
block_sequence[num_steps].func = CLK_MGR401_UPDATE_IDLE_HARDMINS;
|
||||
|
||||
Reference in New Issue
Block a user