mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-13 03:29:49 +00:00
Kernel: Simplify force_pio logic in PATA driver (#923)
This commit is contained in:
parent
95034fdfbd
commit
0b3a868729
Notes:
sideshowbarker
2024-07-19 10:38:43 +09:00
Author: https://github.com/deoxxa
Commit: 0b3a868729
Pull-request: https://github.com/SerenityOS/serenity/pull/923
3 changed files with 17 additions and 14 deletions
|
@ -24,7 +24,7 @@ const char* PATADiskDevice::class_name() const
|
|||
|
||||
bool PATADiskDevice::read_blocks(unsigned index, u16 count, u8* out)
|
||||
{
|
||||
if (m_channel.m_bus_master_base && m_channel.m_dma_enabled.resource() && !m_channel.m_force_pio.resource())
|
||||
if (m_channel.m_bus_master_base && m_channel.m_dma_enabled.resource())
|
||||
return read_sectors_with_dma(index, count, out);
|
||||
return read_sectors(index, count, out);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue