From: Yu Watanabe Date: Wed, 7 Apr 2021 13:26:41 +0000 (+0900) Subject: udev: make dev_pci_slot() return earlier when PCI bridge is found X-Git-Tag: v249-rc1~461^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=19ed9a114cfc936f6301b4f784ff15aea0d2b872;p=thirdparty%2Fsystemd.git udev: make dev_pci_slot() return earlier when PCI bridge is found --- diff --git a/src/udev/udev-builtin-net_id.c b/src/udev/udev-builtin-net_id.c index fa7f162a57c..f4b200ea423 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; }