Kernel: Remove unused AHCIPort::ScatterList::m_device_block_size.

This commit is contained in:
Michel Hermier 2021-03-24 19:49:54 +01:00 committed by Andreas Kling
parent ecb0ae9c33
commit 37be679d6e
Notes: sideshowbarker 2024-07-18 21:04:34 +09:00
2 changed files with 0 additions and 2 deletions

View file

@ -43,7 +43,6 @@ NonnullRefPtr<AHCIPort::ScatterList> AHCIPort::ScatterList::create(AsyncBlockDev
AHCIPort::ScatterList::ScatterList(AsyncBlockDeviceRequest& request, NonnullRefPtrVector<PhysicalPage> allocated_pages, size_t device_block_size)
: m_vm_object(AnonymousVMObject::create_with_physical_pages(allocated_pages))
, m_device_block_size(device_block_size)
{
m_dma_region = MM.allocate_kernel_region_with_vmobject(m_vm_object, page_round_up((request.block_count() * device_block_size)), "AHCI Scattered DMA", Region::Access::Read | Region::Access::Write, Region::Cacheable::Yes);
}

View file

@ -63,7 +63,6 @@ private:
private:
ScatterList(AsyncBlockDeviceRequest&, NonnullRefPtrVector<PhysicalPage> allocated_pages, size_t device_block_size);
NonnullRefPtr<AnonymousVMObject> m_vm_object;
size_t m_device_block_size;
OwnPtr<Region> m_dma_region;
};