[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <yq1y0whthuq.fsf@ca-mkp.ca.oracle.com>
Date: Thu, 03 Apr 2025 10:55:34 -0400
From: "Martin K. Petersen" <martin.petersen@...cle.com>
To: <shao.mingyin@....com.cn>
Cc: <james.bottomley@...senpartnership.com>, <martin.petersen@...cle.com>,
<linux-scsi@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<yang.yang29@....com.cn>, <xu.xin16@....com.cn>,
<ye.xingchen@....com.cn>, <li.haoran7@....com.cn>
Subject: Re: [PATCH] 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.
Applied to 6.15/scsi-staging, thanks!
--
Martin K. Petersen
Powered by blists - more mailing lists