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