summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2021-04-07 15:26:41 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2021-04-07 18:38:47 +0200
commit19ed9a114cfc936f6301b4f784ff15aea0d2b872 (patch)
treed1629c04278fbd8411c2ce453ce3093a294a0b3b /src
parentudev: use uint32_t for hotplug_slot (diff)
downloadsystemd-19ed9a114cfc936f6301b4f784ff15aea0d2b872.tar.xz
systemd-19ed9a114cfc936f6301b4f784ff15aea0d2b872.zip
udev: make dev_pci_slot() return earlier when PCI bridge is found
Diffstat (limited to 'src')
-rw-r--r--src/udev/udev-builtin-net_id.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/udev/udev-builtin-net_id.c b/src/udev/udev-builtin-net_id.c
index fa7f162a57..f4b200ea42 100644
--- a/src/udev/udev-builtin-net_id.c
+++ b/src/udev/udev-builtin-net_id.c
@@ -421,7 +421,7 @@ static int dev_pci_slot(sd_device *dev, struct netnames *names) {
* devices that will try to claim the same index and that would create name
* collision. */
if (naming_scheme_has(NAMING_BRIDGE_NO_SLOT) && is_pci_bridge(hotplug_slot_dev))
- hotplug_slot = 0;
+ return 0;
break;
}