diff --git a/sys/dev/ata/ata-all.c b/sys/dev/ata/ata-all.c index a5397254d0ee..947d82053ffe 100644 --- a/sys/dev/ata/ata-all.c +++ b/sys/dev/ata/ata-all.c @@ -1107,8 +1107,7 @@ ata_intr(void *data) #endif default: if (scp->flags & ATA_DMA_ACTIVE) { - if (((dmastat = ata_dmastatus(scp)) & - (ATA_BMSTAT_ACTIVE|ATA_BMSTAT_INTERRUPT))!=ATA_BMSTAT_INTERRUPT) + if (!((dmastat = ata_dmastatus(scp)) & ATA_BMSTAT_INTERRUPT)) return; outb(scp->bmaddr + ATA_BMSTAT_PORT, dmastat | ATA_BMSTAT_INTERRUPT); }