Explorar o código

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

Hendiadyoin1 %!s(int64=3) %!d(string=hai) anos
pai
achega
73aa5c75d5
Modificáronse 2 ficheiros con 1 adicións e 2 borrados
  1. 1 1
      Kernel/Bus/PCI/Access.cpp
  2. 0 1
      Kernel/Bus/PCI/Access.h

+ 1 - 1
Kernel/Bus/PCI/Access.cpp

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

+ 0 - 1
Kernel/Bus/PCI/Access.h

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