summaryrefslogtreecommitdiff
path: root/udev_remove.c
diff options
context:
space:
mode:
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;
}