Re: [PATCH] scsi: scsi_transport_srp: replace min/max nesting with clamp()

From: Martin K. Petersen
Date: Thu Apr 03 2025 - 10:55:58 EST



> 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.

Applied to 6.15/scsi-staging, thanks!

--
Martin K. Petersen