summaryrefslogtreecommitdiff
path: root/udev_add.c
diff options
context:
space:
mode:
Diffstat (limited to 'udev_add.c')
-rw-r--r--udev_add.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/udev_add.c b/udev_add.c
index be62e130ab..f384ea96e5 100644
--- a/udev_add.c
+++ b/udev_add.c
@@ -194,7 +194,7 @@ static int create_node(struct udevice *udev, struct sysfs_class_device *class_de
}
/* create all_partitions if requested */
- if (udev->partitions > 0) {
+ if (udev->partitions) {
struct sysfs_attribute *attr;
int range;