summaryrefslogtreecommitdiff
path: root/scripts/lib/kdoc/kdoc_re.py
diff options
context:
space:
mode:
authorXichao Zhao <zhao.xichao@vivo.com>2025-08-12 11:16:03 +0800
committerAlex Deucher <alexander.deucher@amd.com>2025-08-15 13:03:21 -0400
commit3e03525ce15cb9fc633b3d0266866020e22ce5e6 (patch)
treefcc1db98f25cc6acc759dca9d7272c086eade0a2 /scripts/lib/kdoc/kdoc_re.py
parentf101c13a8720c73e67f8f9d511fbbeda95bcedb1 (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