summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla4xxx
diff options
context:
space:
mode:
authorVikas Chaudhary <vikas.chaudhary@qlogic.com>2014-02-25 04:07:02 +0100
committerChristoph Hellwig <hch@lst.de>2014-05-19 19:12:15 +0200
commit9c4f8d92c23de47db080d1a33addea30751f6122 (patch)
treef62237060a1b5cf8669c1fa224c76d8a94184e93 /drivers/scsi/qla4xxx
parentqla4xxx: qla4xxx: Move qla4_8xxx_ms_mem_write_128b to ql4_nx.c (diff)
downloadlinux-9c4f8d92c23de47db080d1a33addea30751f6122.tar.xz
linux-9c4f8d92c23de47db080d1a33addea30751f6122.zip
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>
Diffstat (limited to 'drivers/scsi/qla4xxx')
-rw-r--r--drivers/scsi/qla4xxx/ql4_nx.c2
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__);