lpfc 8.3.31: Fix error message displayed even when not an error
Subsystems (2)
PATCH 8/20 lpfc 8.3.31: Fix error message displayed even when not an error
Fix error message displayed even when not an error.
Signed-off-by Alex Iannicelli <[email protected]>
Signed-off-by James Smart <[email protected]>
---
lpfc_sli.c | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-)
drivers/scsi/lpfc/lpfc_sli.c +8 -10
@@ -13278,16 +13278,14 @@ lpfc_sli4_next_xritag(struct lpfc_hba *puint16_t xri_index; xri_index =lpfc_sli4_alloc_xri (phba); -if (xri_index !=NO_XRI ) -return xri_index; - -lpfc_printf_log (phba,KERN_ERR ,LOG_SLI , -"2004 Failed to allocate XRI.last XRITAG is %d" -" Max XRI is %d, Used XRI is %d\n" , - xri_index, - phba->sli4_hba.max_cfg_param.max_xri, - phba->sli4_hba.max_cfg_param.xri_used); -return NO_XRI ; +if (xri_index ==NO_XRI ) +lpfc_printf_log (phba,KERN_WARNING ,LOG_SLI , +"2004 Failed to allocate XRI.last XRITAG is %d" +" Max XRI is %d, Used XRI is %d\n" , + xri_index, + phba->sli4_hba.max_cfg_param.max_xri, + phba->sli4_hba.max_cfg_param.xri_used); +return xri_index; }/**