Commit 81378052 authored by James Smart's avatar James Smart Committed by James Bottomley

[SCSI] lpfc 8.3.31: Fix error message displayed even when not an error

Signed-off-by: default avatarAlex Iannicelli <alex.iannicelli@emulex.com>
Signed-off-by: default avatarJames Smart <james.smart@emulex.com>
Signed-off-by: default avatarJames Bottomley <JBottomley@Parallels.com>
parent 37db57e3
...@@ -13278,16 +13278,14 @@ lpfc_sli4_next_xritag(struct lpfc_hba *phba) ...@@ -13278,16 +13278,14 @@ lpfc_sli4_next_xritag(struct lpfc_hba *phba)
uint16_t xri_index; uint16_t xri_index;
xri_index = lpfc_sli4_alloc_xri(phba); xri_index = lpfc_sli4_alloc_xri(phba);
if (xri_index != NO_XRI) if (xri_index == NO_XRI)
return xri_index; lpfc_printf_log(phba, KERN_WARNING, LOG_SLI,
"2004 Failed to allocate XRI.last XRITAG is %d"
lpfc_printf_log(phba, KERN_ERR, LOG_SLI, " Max XRI is %d, Used XRI is %d\n",
"2004 Failed to allocate XRI.last XRITAG is %d" xri_index,
" Max XRI is %d, Used XRI is %d\n", phba->sli4_hba.max_cfg_param.max_xri,
xri_index, phba->sli4_hba.max_cfg_param.xri_used);
phba->sli4_hba.max_cfg_param.max_xri, return xri_index;
phba->sli4_hba.max_cfg_param.xri_used);
return NO_XRI;
} }
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment