diff options
| author | Xichao Zhao <zhao.xichao@vivo.com> | 2025-08-12 11:16:03 +0800 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2025-08-15 13:03:21 -0400 |
| commit | 3e03525ce15cb9fc633b3d0266866020e22ce5e6 (patch) | |
| tree | fcc1db98f25cc6acc759dca9d7272c086eade0a2 /scripts/lib/kdoc/kdoc_re.py | |
| parent | f101c13a8720c73e67f8f9d511fbbeda95bcedb1 (diff) | |
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: Christian König <christian.koenig@amd.com>
Signed-off-by: Xichao Zhao <zhao.xichao@vivo.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_re.py')
0 files changed, 0 insertions, 0 deletions
