]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
udev: make dev_pci_slot() return earlier when PCI bridge is found
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 7 Apr 2021 13:26:41 +0000 (22:26 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 7 Apr 2021 16:38:47 +0000 (01:38 +0900)
src/udev/udev-builtin-net_id.c

index fa7f162a57c4ac3613ba980be72e1e202cc30439..f4b200ea4233d6c71ca6b61ea1cfabe5290dd19d 100644 (file)
@@ -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;
                         }