Re: [PATCH v3 1/2] scsi: ufs: Use unsigned types for the BSG query
From: Bart Van Assche
Date: Fri Jul 24 2026 - 15:46:53 EST
On 7/23/26 8:10 PM, Hyeoncheol Jeong wrote:
+ *desc_len = min(*desc_len, (u16)QUERY_DESC_MAX_SIZE);
Please remove the u16 cast. Modern versions of min() can handle
arguments with different widths. See also commit d03eba99f5bf ("minmax:
allow min()/max()/clamp() if the arguments have the same signedness.").
Thanks,
Bart.