Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

scsi: lpfc: Fix duplicate wq_create_version check

During code reviews duplicate code sections were found to determine the WQ
Create version. The duplication was potentially overriding logic that
validated page size.

Link: https://lore.kernel.org/r/20201020202719.54726-6-james.smart@broadcom.com
Signed-off-by: James Smart <james.smart@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

James Smart and committed by
Martin K. Petersen
f5201f87 7cbef585

-6
-6
drivers/scsi/lpfc/lpfc_sli.c
··· 15893 15893 else 15894 15894 wq_create_version = LPFC_Q_CREATE_VERSION_0; 15895 15895 15896 - 15897 - if (phba->sli4_hba.pc_sli4_params.wqsize & LPFC_WQ_SZ128_SUPPORT) 15898 - wq_create_version = LPFC_Q_CREATE_VERSION_1; 15899 - else 15900 - wq_create_version = LPFC_Q_CREATE_VERSION_0; 15901 - 15902 15896 switch (wq_create_version) { 15903 15897 case LPFC_Q_CREATE_VERSION_1: 15904 15898 bf_set(lpfc_mbx_wq_create_wqe_count, &wq_create->u.request_1,