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:
parent
cb8896cd74
commit
3b738db6eb
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user