diff options
author | 2025-03-20 15:53:00 +0800 | |
---|---|---|
committer | 2025-03-20 16:53:56 -0700 | |
commit | 64ea88e3afa8c5b6c3f9c477da304b7a56149612 (patch) | |
tree | 56d4491bad015f9a0ee11389921b6285ad323cfe /scripts/generate_rust_analyzer.py | |
parent | nvme-tcp: fix selinux denied when calling sock_sendmsg (diff) | |
download | linux-rng-64ea88e3afa8c5b6c3f9c477da304b7a56149612.tar.xz linux-rng-64ea88e3afa8c5b6c3f9c477da304b7a56149612.zip |
nvmet: replace max(a, min(b, c)) by clamp(val, lo, hi)
This patch replaces max(a, min(b, c)) by clamp(val, lo, hi) in the nvme
driver. The clamp() macro explicitly expresses the intent of constraining
a value within bounds, improving code readability.
Signed-off-by: Li Haoran <li.haoran7@zte.com.cn>
Signed-off-by: Shao Mingyin <shao.mingyin@zte.com.cn>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions