OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd3b854
)
qla4xxx: Check for correct return status
author
Vikas Chaudhary
<vikas.chaudhary@qlogic.com>
Tue, 25 Feb 2014 03:07:02 +0000
(22:07 -0500)
committer
Christoph 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
patch
|
blob
|
history
diff --git
a/drivers/scsi/qla4xxx/ql4_nx.c
b/drivers/scsi/qla4xxx/ql4_nx.c
index
8a56209
..
9dbdb4b
100644
(file)
--- 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__);