Skip to content

Commit 3952e91

Browse files
jsmart-ghmartinkpetersen
authored andcommitted
scsi: lpfc: Fix lpfc_sli4_read_config return value check
An error is an error - but not to the existing return value check. Revise check to handle any failure, not just EIO. Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com> Signed-off-by: James Smart <jsmart2021@gmail.com> Reviewed-by: Hannes Reinecke <hare@suse.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent cd71348 commit 3952e91

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/scsi/lpfc/lpfc_init.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4896,11 +4896,11 @@ lpfc_sli4_async_sli_evt(struct lpfc_hba *phba, struct lpfc_acqe_sli *acqe_sli)
48964896

48974897
/* Issue READ_CONFIG mbox command to refresh supported speeds */
48984898
rc = lpfc_sli4_read_config(phba);
4899-
if (rc == -EIO) {
4899+
if (rc) {
49004900
phba->lmt = 0;
49014901
lpfc_printf_log(phba, KERN_ERR, LOG_SLI,
49024902
"3194 Unable to retrieve supported "
4903-
"speeds\n");
4903+
"speeds, rc = 0x%x\n", rc);
49044904
}
49054905
vports = lpfc_create_vport_work_array(phba);
49064906
if (vports != NULL) {

0 commit comments

Comments
 (0)