]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
scsi: lpfc: Rework lpfc_sli4_fcf_rr_next_index_get()
authorYury Norov (NVIDIA) <yury.norov@gmail.com>
Fri, 5 Dec 2025 23:58:08 +0000 (18:58 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 17 Dec 2025 02:49:52 +0000 (21:49 -0500)
commit1a56e63c82161fca8f8d93b0ce5ce66c7c7d6b6d
treece57b940b08773fac4650088ef795b7b29f54865
parenta8cf5c1bee0fe1b3a829118d636d4f1ea6b408b0
scsi: lpfc: Rework lpfc_sli4_fcf_rr_next_index_get()

The function opencodes for_each_set_bit_wrap(). Use it, and while there
switch from goto-driven codeflow to more high-level constructions.

Signed-off-by: Yury Norov (NVIDIA) <yury.norov@gmail.com>
Reviewed-by: Justin Tee <justin.tee@broadcom.com>
Link: https://patch.msgid.link/20251205235808.358258-1-yury.norov@gmail.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_sli.c