]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
scsi: lpfc: Use min_t() instead of min() in lpfc_sli4_driver_resource_setup
authorJustin Tee <justin.tee@broadcom.com>
Thu, 12 Feb 2026 21:29:59 +0000 (13:29 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 24 Feb 2026 18:06:51 +0000 (13:06 -0500)
commitf8c599ad90f53dbe2246935f90ff49693c26b34f
treee99e6d13e759a9bb894011e06724754a64c99ab9
parent5f442e54e9ef662aaad736ca1af13f20d0448f08
scsi: lpfc: Use min_t() instead of min() in lpfc_sli4_driver_resource_setup

The member called cfg_sg_dma_buf_size is declared as a u32, while the
min comparator's second argument called SLI4_PAGE_SIZE is a #define.
Proper comparison should be using the same type, therefore change to use
min_t.

Signed-off-by: Justin Tee <justin.tee@broadcom.com>
Link: https://patch.msgid.link/20260212213008.149873-5-justintee8345@gmail.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_init.c