Commit bb5649f3 authored by Vikas Chaudhary's avatar Vikas Chaudhary Committed by James Bottomley

[SCSI] qla4xxx: Return correct error status from func qla4xxx_request_irqs()

Signed-off-by: default avatarVikas Chaudhary <vikas.chaudhary@qlogic.com>
Reviewed-by: default avatarMike Christie <michaelc@cs.wisc.edu>
Signed-off-by: default avatarJames Bottomley <JBottomley@Parallels.com>
parent daa34eb4
...@@ -1488,6 +1488,7 @@ void qla4xxx_process_aen(struct scsi_qla_host * ha, uint8_t process_aen) ...@@ -1488,6 +1488,7 @@ void qla4xxx_process_aen(struct scsi_qla_host * ha, uint8_t process_aen)
int qla4xxx_request_irqs(struct scsi_qla_host *ha) int qla4xxx_request_irqs(struct scsi_qla_host *ha)
{ {
int ret; int ret;
int rval = QLA_ERROR;
if (is_qla40XX(ha)) if (is_qla40XX(ha))
goto try_intx; goto try_intx;
...@@ -1569,8 +1570,9 @@ int qla4xxx_request_irqs(struct scsi_qla_host *ha) ...@@ -1569,8 +1570,9 @@ int qla4xxx_request_irqs(struct scsi_qla_host *ha)
ha->host->irq = ha->pdev->irq; ha->host->irq = ha->pdev->irq;
ql4_printk(KERN_INFO, ha, "%s: irq %d attached\n", ql4_printk(KERN_INFO, ha, "%s: irq %d attached\n",
__func__, ha->pdev->irq); __func__, ha->pdev->irq);
rval = QLA_SUCCESS;
irq_not_attached: irq_not_attached:
return ret; return rval;
} }
void qla4xxx_free_irqs(struct scsi_qla_host *ha) void qla4xxx_free_irqs(struct scsi_qla_host *ha)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment