mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:48:10 +00:00
Kernel: Use PCIIdentifier is_msix_capable API to retrieve MSIx status
Instead of iterating through the capabilities, use the is_msix_capable() API from the PCIIdentifier class that belongs to the device.
This commit is contained in:
parent
d0fbaf790a
commit
d3bb63afff
1 changed files with 1 additions and 3 deletions
|
@ -24,9 +24,7 @@ bool Device::is_msi_capable() const
|
|||
}
|
||||
bool Device::is_msix_capable() const
|
||||
{
|
||||
return AK::any_of(
|
||||
m_pci_identifier->capabilities(),
|
||||
[](auto const& capability) { return capability.id().value() == PCI::Capabilities::ID::MSIX; });
|
||||
return m_pci_identifier->is_msix_capable();
|
||||
}
|
||||
|
||||
void Device::enable_pin_based_interrupts() const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue