Commit e79aa10
scsi: lpfc: use min() to improve code
Use min_t() to reduce the code in lpfc_sli4_driver_resource_setup() and
lpfc_nvme_prep_io_cmd(), and improve readability.
Signed-off-by: Qianfeng Rong <rongqianfeng@vivo.com>
Link: https://lore.kernel.org/r/20250815121609.384914-4-rongqianfeng@vivo.com
Reviewed-by: Justin Tee <justin.tee@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>1 parent 0138c16 commit e79aa10
2 files changed
Lines changed: 3 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8300 | 8300 | | |
8301 | 8301 | | |
8302 | 8302 | | |
8303 | | - | |
8304 | | - | |
8305 | | - | |
8306 | | - | |
| 8303 | + | |
8307 | 8304 | | |
8308 | 8305 | | |
8309 | 8306 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1234 | 1234 | | |
1235 | 1235 | | |
1236 | 1236 | | |
1237 | | - | |
1238 | | - | |
1239 | | - | |
1240 | | - | |
1241 | | - | |
1242 | | - | |
| 1237 | + | |
| 1238 | + | |
1243 | 1239 | | |
1244 | 1240 | | |
1245 | 1241 | | |
| |||
0 commit comments