summaryrefslogtreecommitdiff
path: root/udev_node.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2007-06-03 00:01:46 +0200
committerKay Sievers <kay.sievers@vrfy.org>2007-06-03 00:01:46 +0200
commit953249a3a01cbd442b42558168da6c76a92a0e40 (patch)
tree1b7c3d8c91da6cc04eec719badc9d099d2c3fa9e /udev_node.c
parent5e9eb88f2f6d99eaee16aeeb76ac08a1bf98a668 (diff)
add TEST=="<file>" key
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;