From: Kay Sievers Date: Fri, 16 Mar 2007 20:15:54 +0000 (+0100) Subject: remove old error message X-Git-Tag: 174~2031 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d7fdcd61927e9439ad7079bb0967e0b6edac7646;p=systemd remove old error message --- diff --git a/udev_node.c b/udev_node.c index 1632c2cc..ed323e94 100644 --- a/udev_node.c +++ b/udev_node.c @@ -337,10 +337,8 @@ int udev_node_remove(struct udevice *udev) int i; info("removing all_partitions '%s[1-%i]'", filename, num); - if (num > 255) { - info("garbage from udev database, skip all_partitions removal"); + if (num > 255) return -1; - } for (i = 1; i <= num; i++) { snprintf(partitionname, sizeof(partitionname), "%s%d", filename, i); partitionname[sizeof(partitionname)-1] = '\0';