Skip to content
Snippets Groups Projects
Commit 5199e8ac authored by FengWei's avatar FengWei Committed by Alex Deucher
Browse files

drm/radeon/uvd: Replace nested max() with single max3()


Use max3() macro instead of nesting max() to simplify the return
statement.

Signed-off-by: default avatarFengWei <feng.wei8@zte.com.cn>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 0d9a9509
No related branches found
No related tags found
No related merge requests found
......@@ -961,7 +961,7 @@ int radeon_uvd_calc_upll_dividers(struct radeon_device *rdev,
unsigned optimal_score = ~0;
/* loop through vco from low to high */
vco_min = max(max(vco_min, vclk), dclk);
vco_min = max3(vco_min, vclk, dclk);
for (vco_freq = vco_min; vco_freq <= vco_max; vco_freq += 100) {
uint64_t fb_div = (uint64_t)vco_freq * fb_factor;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment