[systemd-devel] [PATCH 2/2] udev: fix for devices without PCI

Rob Clark robdclark at gmail.com
Sun Mar 3 09:55:09 PST 2013


On many arm embedded SoC's (phones, tablets, etc), there is no PCI bus.
So it is not an error if names_pci() fails to find a parent PCI device.

Signed-off-by: Rob Clark <robdclark at gmail.com>
---
 src/udev/udev-builtin-net_id.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/udev/udev-builtin-net_id.c b/src/udev/udev-builtin-net_id.c
index fdbec5a..c5d6d51 100644
--- a/src/udev/udev-builtin-net_id.c
+++ b/src/udev/udev-builtin-net_id.c
@@ -439,9 +439,7 @@ static int builtin_net_id(struct udev_device *dev, int argc, char *argv[], bool
         }
 
         /* get PCI based path names, we compose only PCI based paths */
-        err = names_pci(dev, &names);
-        if (err < 0)
-                goto out;
+        names_pci(dev, &names);
 
         /* plain PCI device */
         if (names.type == NET_PCI) {
-- 
1.8.1.2



More information about the systemd-devel mailing list