summaryrefslogtreecommitdiff
path: root/Kernel/Net/NetworkingManagement.cpp
diff options
context:
space:
mode:
authorLiav A <liavalb@gmail.com>2021-09-23 09:14:51 +0300
committerAndreas Kling <kling@serenityos.org>2021-09-29 11:24:33 +0200
commitda327746a2702bd40ae6fa79017850ed357f5c1f (patch)
tree2c270fd138684e6713105c9c1eb93941cea256ec /Kernel/Net/NetworkingManagement.cpp
parent82bb08a15cbe447b5b0deeac16cccc22bf1c1c57 (diff)
downloadserenity-da327746a2702bd40ae6fa79017850ed357f5c1f.zip
Kernel: Rename two PCI components
Rename ID => HardwareID, and PhysicalID => DeviceIdentifier. This change merely does that to clarify what these objects really are.
Diffstat (limited to 'Kernel/Net/NetworkingManagement.cpp')
-rw-r--r--Kernel/Net/NetworkingManagement.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/Net/NetworkingManagement.cpp b/Kernel/Net/NetworkingManagement.cpp
index 92cc562148..bb5e52e380 100644
--- a/Kernel/Net/NetworkingManagement.cpp
+++ b/Kernel/Net/NetworkingManagement.cpp
@@ -91,9 +91,9 @@ UNMAP_AFTER_INIT RefPtr<NetworkAdapter> NetworkingManagement::determine_network_
bool NetworkingManagement::initialize()
{
if (!kernel_command_line().is_physical_networking_disabled()) {
- PCI::enumerate([&](const PCI::Address& address, PCI::PhysicalID const& physical_id) {
+ PCI::enumerate([&](const PCI::Address& address, PCI::DeviceIdentifier const& device_identifier) {
// Note: PCI class 2 is the class of Network devices
- if (physical_id.class_code().value() != 0x02)
+ if (device_identifier.class_code().value() != 0x02)
return;
if (auto adapter = determine_network_device(address); !adapter.is_null())
m_adapters.append(adapter.release_nonnull());