mirror of
https://github.com/RGBCube/serenity
synced 2025-07-08 23:07:35 +00:00
Kernel/PCI: Remove Address from enumeration callback
If we need that address, we can always get it from the DeviceIdentifier.
This commit is contained in:
parent
a411a44fda
commit
9d9d57056e
13 changed files with 27 additions and 30 deletions
|
@ -91,7 +91,7 @@ UNMAP_AFTER_INIT RefPtr<NetworkAdapter> NetworkingManagement::determine_network_
|
|||
bool NetworkingManagement::initialize()
|
||||
{
|
||||
if (!kernel_command_line().is_physical_networking_disabled()) {
|
||||
PCI::enumerate([&](const PCI::Address&, PCI::DeviceIdentifier const& device_identifier) {
|
||||
PCI::enumerate([&](PCI::DeviceIdentifier const& device_identifier) {
|
||||
// Note: PCI class 2 is the class of Network devices
|
||||
if (device_identifier.class_code().value() != 0x02)
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue