1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:38:11 +00:00

PATA: Avoid double-preparing for irq

This commit is contained in:
Tom 2020-06-16 15:17:00 -06:00 committed by Andreas Kling
parent 3ac6d31b45
commit 10407061d2

View file

@ -452,7 +452,8 @@ bool PATAChannel::ata_read_sectors(u32 lba, u16 count, u8* outbuf, bool slave_re
m_io_base.offset(ATA_REG_COMMAND).out<u8>(ATA_CMD_READ_PIO);
for (int i = 0; i < count; i++) {
prepare_for_irq();
if (i > 0)
prepare_for_irq();
wait_for_irq();
if (m_device_error)
return false;