drm/radeon: replace nested min calls with min3

In dce6_available_bandwidth() and dce8_available_bandwidth(), replace
nested min() calls with min3().

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Thorsten Blum 2026-04-07 20:14:08 +02:00 committed by Alex Deucher
parent 4ecf76a3fe
commit 850b107765
2 changed files with 2 additions and 2 deletions

View File

@ -9063,7 +9063,7 @@ static u32 dce8_available_bandwidth(struct dce8_wm_params *wm)
u32 data_return_bandwidth = dce8_data_return_bandwidth(wm);
u32 dmif_req_bandwidth = dce8_dmif_request_bandwidth(wm);
return min(dram_bandwidth, min(data_return_bandwidth, dmif_req_bandwidth));
return min3(dram_bandwidth, data_return_bandwidth, dmif_req_bandwidth);
}
/**

View File

@ -2150,7 +2150,7 @@ static u32 dce6_available_bandwidth(struct dce6_wm_params *wm)
u32 data_return_bandwidth = dce6_data_return_bandwidth(wm);
u32 dmif_req_bandwidth = dce6_dmif_request_bandwidth(wm);
return min(dram_bandwidth, min(data_return_bandwidth, dmif_req_bandwidth));
return min3(dram_bandwidth, data_return_bandwidth, dmif_req_bandwidth);
}
static u32 dce6_average_bandwidth(struct dce6_wm_params *wm)