summaryrefslogtreecommitdiff
path: root/udev_node.c
diff options
context:
space:
mode:
Diffstat (limited to 'udev_node.c')
-rw-r--r--udev_node.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/udev_node.c b/udev_node.c
index b1bbda8369..338948fc54 100644
--- a/udev_node.c
+++ b/udev_node.c
@@ -322,7 +322,7 @@ int udev_node_add(struct udevice *udev)
/* take the maximum registered minor range */
attr = sysfs_attr_get_value(udev->dev->devpath, "range");
- if (attr) {
+ if (attr != NULL) {
range = atoi(attr);
if (range > 1)
udev->partitions = range-1;