Re: [PATCH v4 1/2] scsi: ufs: Use unsigned types for the BSG query
From: Bart Van Assche
Date: Tue Jul 28 2026 - 17:12:18 EST
On 7/28/26 2:24 AM, Hyeoncheol Jeong wrote:
The UPIU query length field is an unsigned 16-bit value per the UFSReviewed-by: Bart Van Assche <bvanassche@xxxxxxx>
standard, but ufs_bsg carried it around in signed int. Switch the
descriptor length and buffer pointer to u16/u8, fold the trivial
ufs_bsg_get_query_desc_size() helper into its only caller, and replace
min_t(int, ...) with min(). No functional change intended.