1
0
mirror of https://github.com/systemd/systemd.git synced 2025-02-03 17:47:28 +03:00

remove redundant string copy in udev_rules_apply_format()

This commit is contained in:
Alan Jenkins 2008-09-08 21:59:27 +02:00 committed by Kay Sievers
parent cb8896cd74
commit 3b738db6eb

View File

@ -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);
}