diff options
| author | Li Haoran <[email protected]> | 2025-03-20 07:53:00 +0000 |
|---|---|---|
| committer | Keith Busch <[email protected]> | 2025-03-20 23:53:56 +0000 |
| commit | 64ea88e3afa8c5b6c3f9c477da304b7a56149612 (patch) | |
| tree | 56d4491bad015f9a0ee11389921b6285ad323cfe /net/unix/unix_bpf.c | |
| parent | nvme-tcp: fix selinux denied when calling sock_sendmsg (diff) | |
| download | kernel-64ea88e3afa8c5b6c3f9c477da304b7a56149612.tar.gz kernel-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 <[email protected]>
Signed-off-by: Shao Mingyin <[email protected]>
Signed-off-by: Keith Busch <[email protected]>
Diffstat (limited to 'net/unix/unix_bpf.c')
0 files changed, 0 insertions, 0 deletions
