diff options
-rw-r--r-- | drivers/scsi/ipr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/ipr.c b/drivers/scsi/ipr.c index 0251fd7272e0..aa1fb72ca235 100644 --- a/drivers/scsi/ipr.c +++ b/drivers/scsi/ipr.c | |||
@@ -5128,7 +5128,7 @@ static unsigned int ipr_qc_issue(struct ata_queued_cmd *qc) | |||
5128 | struct ipr_ioarcb_ata_regs *regs; | 5128 | struct ipr_ioarcb_ata_regs *regs; |
5129 | 5129 | ||
5130 | if (unlikely(!ioa_cfg->allow_cmds || ioa_cfg->ioa_is_dead)) | 5130 | if (unlikely(!ioa_cfg->allow_cmds || ioa_cfg->ioa_is_dead)) |
5131 | return -EIO; | 5131 | return AC_ERR_SYSTEM; |
5132 | 5132 | ||
5133 | ipr_cmd = ipr_get_free_ipr_cmnd(ioa_cfg); | 5133 | ipr_cmd = ipr_get_free_ipr_cmnd(ioa_cfg); |
5134 | ioarcb = &ipr_cmd->ioarcb; | 5134 | ioarcb = &ipr_cmd->ioarcb; |
@@ -5173,7 +5173,7 @@ static unsigned int ipr_qc_issue(struct ata_queued_cmd *qc) | |||
5173 | 5173 | ||
5174 | default: | 5174 | default: |
5175 | WARN_ON(1); | 5175 | WARN_ON(1); |
5176 | return -1; | 5176 | return AC_ERR_INVALID; |
5177 | } | 5177 | } |
5178 | 5178 | ||
5179 | mb(); | 5179 | mb(); |