Kernel: Fix some clang-tidy warnings in PCI::Access

This commit is contained in:
Hendiadyoin1 2021-12-08 13:43:38 +01:00 committed by Brian Gianforcaro
parent 19ba32651d
commit 73aa5c75d5
Notes: sideshowbarker 2024-07-17 23:01:02 +09:00
2 changed files with 1 additions and 2 deletions

View file

@ -458,7 +458,7 @@ void Access::fast_enumerate(Function<void(DeviceIdentifier const&)>& callback) c
{
MutexLocker locker(m_access_lock);
VERIFY(!m_device_identifiers.is_empty());
for (auto& device_identifier : m_device_identifiers) {
for (auto const& device_identifier : m_device_identifiers) {
callback(device_identifier);
}
}

View file

@ -22,7 +22,6 @@ public:
Memory,
};
public:
static bool initialize_for_memory_access(PhysicalAddress mcfg_table);
static bool initialize_for_io_access();