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:
parent
3ac6d31b45
commit
10407061d2
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue