scsi: lpfc: Simplify error handling for failed lpfc_get_sli4_parameters cmd
authorJustin Tee <justin.tee@broadcom.com>
Wed, 18 Jun 2025 19:21:31 +0000 (12:21 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 23 Jun 2025 17:10:33 +0000 (13:10 -0400)
commit5a00dfc58bfe5fcff079bf90d1cc0254cab8e33e
treeff29f3d984466f1448c32d3e5f88f0293811d574
parent6b61ec3dd472f8fd367f116e61771030f4d410db
scsi: lpfc: Simplify error handling for failed lpfc_get_sli4_parameters cmd

There are unnecessary checks on an HBA's interface type and family before
erroring out a failed lpfc_get_sli4_parameters mailbox command.  Simplify
the error handling by logging a message and proceeding to memory free
labels.

Signed-off-by: Justin Tee <justin.tee@broadcom.com>
Link: https://lore.kernel.org/r/20250618192138.124116-7-justintee8345@gmail.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_init.c