summaryrefslogtreecommitdiff
path: root/udev/udev_rules.c
diff options
context:
space:
mode:
Diffstat (limited to 'udev/udev_rules.c')
-rw-r--r--udev/udev_rules.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/udev/udev_rules.c b/udev/udev_rules.c
index b864599a9d..ce1f66ecd6 100644
--- a/udev/udev_rules.c
+++ b/udev/udev_rules.c
@@ -850,10 +850,8 @@ found:
do {
dbg(udevice->udev, "looking at '%s'\n", dev_parent->devpath);
value = sysfs_attr_get_value(udevice->udev, dev_parent->devpath, attr);
- if (value != NULL) {
- strlcpy(temp2, value, sizeof(temp2));
+ if (value != NULL)
break;
- }
dev_parent = sysfs_device_get_parent(udevice->udev, dev_parent);
} while (dev_parent != NULL);
}