From afe123c3a187f9e13ea90bcd08af822e7e3d5f2a Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Mon, 10 Oct 2016 17:45:27 +0000 Subject: ethernet: don't assert there's the udev device for an ethernet device We could be running in a container. --- src/devices/nm-device-ethernet.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/devices/nm-device-ethernet.c b/src/devices/nm-device-ethernet.c index 3604a168a8..e7d43763b5 100644 --- a/src/devices/nm-device-ethernet.c +++ b/src/devices/nm-device-ethernet.c @@ -171,11 +171,8 @@ _update_s390_subchannels (NMDeviceEthernet *self) ifindex = nm_device_get_ifindex ((NMDevice *) self); dev = (GUdevDevice *) nm_g_object_ref (nm_platform_link_get_udev_device (NM_PLATFORM_GET, ifindex)); - if (!dev) { - /* we only call _update_s390_subchannels() when platform claims the device to be initialized. - * Thus, we expect to successfully lookup a GUdevDevice. */ - g_return_if_reached (); - } + if (!dev) + return; /* Try for the "ccwgroup" parent */ parent = g_udev_device_get_parent_with_subsystem (dev, "ccwgroup", NULL); -- cgit v1.2.1