Don't check DMA_ST_ERROR before DMA_ST_INT is set (which is done too)

This commit is contained in:
Ben Gras 2009-10-22 14:31:29 +00:00
parent 204f9d496a
commit 5920582bde

View file

@ -2648,9 +2648,6 @@ PRIVATE void ack_irqs(unsigned int irqs)
sys_outb(wini[drive].base_dma + DMA_STATUS, DMA_ST_INT); sys_outb(wini[drive].base_dma + DMA_STATUS, DMA_ST_INT);
wini[drive].dma_intseen = 1; wini[drive].dma_intseen = 1;
} }
if(w_status & DMA_ST_ERROR) {
printf("at_wini: DMA error\n");
}
if (sys_irqenable(&wini[drive].irq_hook_id) != OK) if (sys_irqenable(&wini[drive].irq_hook_id) != OK)
printf("couldn't re-enable drive %d\n", drive); printf("couldn't re-enable drive %d\n", drive);
} }