diff options
author | Liav A <liavalb@gmail.com> | 2021-09-23 11:05:00 +0300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-09-29 11:24:33 +0200 |
commit | 9d9d57056ea1a9a9ce599d69309d0d78b8c27b8b (patch) | |
tree | dff74950e7856e8d55e1ae767d85834766d280db /Kernel/Net/NetworkingManagement.cpp | |
parent | a411a44fda3ba713e139331d4c29ea32f70c99d8 (diff) | |
download | serenity-9d9d57056ea1a9a9ce599d69309d0d78b8c27b8b.zip |
Kernel/PCI: Remove Address from enumeration callback
If we need that address, we can always get it from the DeviceIdentifier.
Diffstat (limited to 'Kernel/Net/NetworkingManagement.cpp')
-rw-r--r-- | Kernel/Net/NetworkingManagement.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Net/NetworkingManagement.cpp b/Kernel/Net/NetworkingManagement.cpp index dba129ecec..59c39f3a36 100644 --- a/Kernel/Net/NetworkingManagement.cpp +++ b/Kernel/Net/NetworkingManagement.cpp @@ -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; |