mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
PATA: Avoid double-preparing for irq
This commit is contained in:
parent
3ac6d31b45
commit
10407061d2
Notes:
sideshowbarker
2024-07-19 05:18:16 +09:00
Author: https://github.com/tomuta
Commit: 10407061d2
Pull-request: https://github.com/SerenityOS/serenity/pull/2513
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