diff options
author | Vikas Chaudhary <vikas.chaudhary@qlogic.com> | 2014-02-24 22:07:02 -0500 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2014-05-19 19:12:15 +0200 |
commit | 9c4f8d92c23de47db080d1a33addea30751f6122 (patch) | |
tree | f62237060a1b5cf8669c1fa224c76d8a94184e93 | |
parent | dd3b854e161256d63561db2edf823059b5efd9a4 (diff) |
qla4xxx: Check for correct return status
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>
-rw-r--r-- | drivers/scsi/qla4xxx/ql4_nx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/qla4xxx/ql4_nx.c b/drivers/scsi/qla4xxx/ql4_nx.c index 8a562097ca7d..9dbdb4be2d8f 100644 --- a/drivers/scsi/qla4xxx/ql4_nx.c +++ b/drivers/scsi/qla4xxx/ql4_nx.c @@ -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__); |