diff options
| author | Li Haoran <[email protected]> | 2025-03-31 07:55:11 +0000 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2025-04-03 14:54:31 +0000 |
| commit | a63b69f05f999acae91b0b50d7c5fe4fb241dbaf (patch) | |
| tree | 19a06ef97994f595654000707723c871eee2d3fa /net/unix/af_unix.h | |
| parent | scsi: ufs: core: Add device level exception support (diff) | |
| download | kernel-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
