qla4xxx: Check for correct return status
authorVikas Chaudhary <vikas.chaudhary@qlogic.com>
Tue, 25 Feb 2014 03:07:02 +0000 (22:07 -0500)
committerChristoph Hellwig <hch@lst.de>
Mon, 19 May 2014 17:12:15 +0000 (19:12 +0200)
Check for correct return status in function -
qla4_8xxx_minidump_pex_dma_read

Signed-off-by: Vikas Chaudhary <vikas.chaudhary@qlogic.com>
Reviewed-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/scsi/qla4xxx/ql4_nx.c

index 8a562097ca7d0c3ff260acd92e489a207ba96779..9dbdb4be2d8f7258a75043738d819dffcd410146 100644 (file)
@@ -2105,7 +2105,7 @@ static int qla4_8xxx_minidump_pex_dma_read(struct scsi_qla_host *ha,
                              (uint64_t)m_hdr->desc_card_addr,
                              (uint32_t *)&dma_desc,
                              (sizeof(struct qla4_83xx_pex_dma_descriptor)/16));
-               if (rval == -1) {
+               if (rval != QLA_SUCCESS) {
                        ql4_printk(KERN_INFO, ha,
                                   "%s: Error writing rdmem-dma-init to MS !!!\n",
                                   __func__);