Commit 3e03525c authored by Xichao Zhao's avatar Xichao Zhao Committed by Alex Deucher
Browse files

drm/radeon: replace min/max nesting with clamp()



The clamp() macro explicitly expresses the intent of constraining
a value within bounds.Therefore, replacing min(max(a, b), c) and
max(min(a,b),c) with clamp(val, lo, hi) can improve code readability.

Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
Signed-off-by: default avatarXichao Zhao <zhao.xichao@vivo.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent f101c13a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment