aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/lpfc
diff options
context:
space:
mode:
authorJames Smart <james.smart@emulex.com>2012-05-09 21:17:37 -0400
committerJames Bottomley <JBottomley@Parallels.com>2012-05-17 06:01:43 -0400
commit81378052645b137e9973aa5e5b2bc0ddd69023d8 (patch)
tree5b732edad63688e2498b689a2c34b8ce547f6bcc /drivers/scsi/lpfc
parent37db57e32bd1b00170fdd38ab36a7f2acdd7557c (diff)
[SCSI] lpfc 8.3.31: Fix error message displayed even when not an error
Signed-off-by: Alex Iannicelli <alex.iannicelli@emulex.com> Signed-off-by: James Smart <james.smart@emulex.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/lpfc')
-rw-r--r--drivers/scsi/lpfc/lpfc_sli.c18
1 files changed, 8 insertions, 10 deletions
diff --git a/drivers/scsi/lpfc/lpfc_sli.c b/drivers/scsi/lpfc/lpfc_sli.c
index 7c4067913c29..d693f67ee074 100644
--- a/drivers/scsi/lpfc/lpfc_sli.c
+++ b/drivers/scsi/lpfc/lpfc_sli.c
@@ -13278,16 +13278,14 @@ lpfc_sli4_next_xritag(struct lpfc_hba *phba)
13278 uint16_t xri_index; 13278 uint16_t xri_index;
13279 13279
13280 xri_index = lpfc_sli4_alloc_xri(phba); 13280 xri_index = lpfc_sli4_alloc_xri(phba);
13281 if (xri_index != NO_XRI) 13281 if (xri_index == NO_XRI)
13282 return xri_index; 13282 lpfc_printf_log(phba, KERN_WARNING, LOG_SLI,
13283 13283 "2004 Failed to allocate XRI.last XRITAG is %d"
13284 lpfc_printf_log(phba, KERN_ERR, LOG_SLI, 13284 " Max XRI is %d, Used XRI is %d\n",
13285 "2004 Failed to allocate XRI.last XRITAG is %d" 13285 xri_index,
13286 " Max XRI is %d, Used XRI is %d\n", 13286 phba->sli4_hba.max_cfg_param.max_xri,
13287 xri_index, 13287 phba->sli4_hba.max_cfg_param.xri_used);
13288 phba->sli4_hba.max_cfg_param.max_xri, 13288 return xri_index;
13289 phba->sli4_hba.max_cfg_param.xri_used);
13290 return NO_XRI;
13291} 13289}
13292 13290
13293/** 13291/**