diff options
Diffstat (limited to 'Kernel/Bus/PCI/DeviceController.cpp')
-rw-r--r-- | Kernel/Bus/PCI/DeviceController.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/Bus/PCI/DeviceController.cpp b/Kernel/Bus/PCI/DeviceController.cpp index 7dd396dc0b..8e0705b1e5 100644 --- a/Kernel/Bus/PCI/DeviceController.cpp +++ b/Kernel/Bus/PCI/DeviceController.cpp @@ -16,7 +16,7 @@ DeviceController::DeviceController(Address address) bool DeviceController::is_msi_capable() const { - for (auto capability : PCI::get_physical_id(pci_address()).capabilities()) { + for (const auto& capability : PCI::get_physical_id(pci_address()).capabilities()) { if (capability.id() == PCI_CAPABILITY_MSI) return true; } @@ -24,7 +24,7 @@ bool DeviceController::is_msi_capable() const } bool DeviceController::is_msix_capable() const { - for (auto capability : PCI::get_physical_id(pci_address()).capabilities()) { + for (const auto& capability : PCI::get_physical_id(pci_address()).capabilities()) { if (capability.id() == PCI_CAPABILITY_MSIX) return true; } |