mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:57:45 +00:00
Kernel: Simplify force_pio logic in PATA driver (#923)
This commit is contained in:
parent
95034fdfbd
commit
0b3a868729
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