scsi: lpfc: Fix target reset handler from falsely returning FAILURE
authorJames Smart <jsmart2021@gmail.com>
Wed, 7 Jul 2021 18:43:37 +0000 (11:43 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 19 Jul 2021 02:30:35 +0000 (22:30 -0400)
commit21990d3d1861c7aa8e3e4ed98614f0c161c29b0c
tree269f0bca7264bfb41dc1e47eda2b559192a979de
parente77803bdbf0aad98d36b1d3fa082852831814edd
scsi: lpfc: Fix target reset handler from falsely returning FAILURE

Previous logic accidentally overrides the status variable to FAILURE when
target reset status is SUCCESS.

Refactor the non-SUCCESS logic of lpfc_vmid_vport_cleanup(), which resolves
the false override.

Link: https://lore.kernel.org/r/20210707184351.67872-7-jsmart2021@gmail.com
Co-developed-by: Justin Tee <justin.tee@broadcom.com>
Signed-off-by: Justin Tee <justin.tee@broadcom.com>
Signed-off-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_scsi.c