Kernel: Simplify force_pio logic in PATA driver (#923)

This commit is contained in:
Conrad Pankoff 2019-12-27 08:57:58 +11:00 committed by Andreas Kling
commit 0b3a868729
Notes: sideshowbarker 2024-07-19 10:38:43 +09:00
3 changed files with 17 additions and 14 deletions

View file

@ -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);
}