aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.h
diff options
context:
space:
mode:
authorLi Haoran <[email protected]>2025-03-31 07:55:11 +0000
committerMartin K. Petersen <[email protected]>2025-04-03 14:54:31 +0000
commita63b69f05f999acae91b0b50d7c5fe4fb241dbaf (patch)
tree19a06ef97994f595654000707723c871eee2d3fa /net/unix/af_unix.h
parentscsi: ufs: core: Add device level exception support (diff)
downloadkernel-a63b69f05f999acae91b0b50d7c5fe4fb241dbaf.tar.gz
kernel-a63b69f05f999acae91b0b50d7c5fe4fb241dbaf.zip
scsi: scsi_transport_srp: Replace min/max nesting with clamp()
This patch replaces min(a, max(b, c)) by clamp(val, lo, hi) in the SRP transport layer. 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]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Bart Van Assche <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'net/unix/af_unix.h')
0 files changed, 0 insertions, 0 deletions