diff options
Diffstat (limited to 'drivers/ata/sata_promise.c')
-rw-r--r-- | drivers/ata/sata_promise.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/ata/sata_promise.c b/drivers/ata/sata_promise.c index a7916d72c4ca..8afde4a9ca7e 100644 --- a/drivers/ata/sata_promise.c +++ b/drivers/ata/sata_promise.c | |||
@@ -622,11 +622,8 @@ static void pdc_post_internal_cmd(struct ata_queued_cmd *qc) | |||
622 | { | 622 | { |
623 | struct ata_port *ap = qc->ap; | 623 | struct ata_port *ap = qc->ap; |
624 | 624 | ||
625 | if (qc->flags & ATA_QCFLAG_FAILED) | ||
626 | qc->err_mask |= AC_ERR_OTHER; | ||
627 | |||
628 | /* make DMA engine forget about the failed command */ | 625 | /* make DMA engine forget about the failed command */ |
629 | if (qc->err_mask) | 626 | if (qc->flags & ATA_QCFLAG_FAILED) |
630 | pdc_reset_port(ap); | 627 | pdc_reset_port(ap); |
631 | } | 628 | } |
632 | 629 | ||