1
Fork 0
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:
Conrad Pankoff 2019-12-27 08:57:58 +11:00 committed by Andreas Kling
parent 95034fdfbd
commit 0b3a868729
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);
}