discover/udev: NULL return from udev_enumerate_get_list_entry isn't an error
[petitboot] / discover / udev.c
index 00b6df78c18cecbf119bf0729f030efeed12ed0d..6ccb8d4ba42917aed8669cf4e78bff03cc500a6e 100644 (file)
@@ -321,11 +321,6 @@ static int udev_enumerate(struct udev *udev)
 
        list = udev_enumerate_get_list_entry(enumerate);
 
-       if (!list) {
-               pb_log("udev_enumerate_get_list_entry failed\n");
-               goto fail;
-       }
-
        udev_list_entry_foreach(entry, list) {
                const char *syspath;
                struct udev_device *dev;