]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
[SCSI] lpfc 8.3.31: Fix error message displayed even when not an error
authorJames Smart <james.smart@emulex.com>
Thu, 10 May 2012 01:17:37 +0000 (21:17 -0400)
committerJames Bottomley <JBottomley@Parallels.com>
Thu, 17 May 2012 10:01:43 +0000 (11:01 +0100)
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>
drivers/scsi/lpfc/lpfc_sli.c

index 7c4067913c29a18fdf156ecb0839da1b5289205d..d693f67ee0748732c4d947bca5b38d59c20e3b0d 100644 (file)
@@ -13278,16 +13278,14 @@ lpfc_sli4_next_xritag(struct lpfc_hba *phba)
        uint16_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;
 }
 
 /**