scsi: lpfc: Fix duplicate wq_create_version check
authorJames Smart <james.smart@broadcom.com>
Tue, 20 Oct 2020 20:27:15 +0000 (13:27 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 27 Oct 2020 01:42:38 +0000 (21:42 -0400)
commitf5201f87ccafd8d80283c87490bbdf78f8a026bf
tree89fe6f2f56182d4d0cd63e648a7c482244ecee36
parent7cbef585a12a098e694d34e94c140b18fe0e9735
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>
drivers/scsi/lpfc/lpfc_sli.c