chiark / gitweb /
gpt-auto-generator: don't return OOM on parentless devices
[elogind.git] / src / gpt-auto-generator / gpt-auto-generator.c
index e487f64386892d4e0917c918a711c3369e0c49e8..19c5eea9de2fc24a5a97cb3589d77d08f20d39c7 100644 (file)
@@ -395,7 +395,7 @@ static int enumerate_partitions(dev_t devnum) {
 
         parent = udev_device_get_parent(d);
         if (!parent)
 
         parent = udev_device_get_parent(d);
         if (!parent)
-                return log_oom();
+                return 0;
 
         /* Does it have a devtype? */
         devtype = udev_device_get_devtype(parent);
 
         /* Does it have a devtype? */
         devtype = udev_device_get_devtype(parent);