summaryrefslogtreecommitdiff
path: root/udev_remove.c
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2005-02-09 08:43:18 +0100
committerGreg KH <gregkh@suse.de>2005-04-26 23:27:41 -0700
commit6d56416665863dc2b4fb107dbdc779e4791bdf9e (patch)
tree906017c79653eda2bfa421733c4901fa9e51b440 /udev_remove.c
parentc1ab046124ebef3c82950b91ccfd1678d9f7fe5b (diff)
[PATCH] create /block/*/range count of partitons for all_partitions
Diffstat (limited to 'udev_remove.c')
-rw-r--r--udev_remove.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/udev_remove.c b/udev_remove.c
index e1af3dbef6..172ec12690 100644
--- a/udev_remove.c
+++ b/udev_remove.c
@@ -89,7 +89,7 @@ static int delete_node(struct udevice *udev)
num = udev->partitions;
if (num > 0) {
info("removing all_partitions '%s[1-%i]'", filename, num);
- if (num > PARTITIONS_COUNT) {
+ if (num > 255) {
info("garbage from udev database, skip all_partitions removal");
return -1;
}