diff options
author | Alan Jenkins <alan-jenkins@tuffmail.co.uk> | 2008-09-08 21:59:27 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2008-09-08 21:59:27 +0200 |
commit | 3b738db6eb3bf9221509f3dec8044c19bb48cb48 (patch) | |
tree | 6c99a9aaedac935ec7f338aad5a6e4ee6af87318 | |
parent | cb8896cd74814acc9360db3156e37233fcfbc20c (diff) |
remove redundant string copy in udev_rules_apply_format()
-rw-r--r-- | udev/udev_rules.c | 4 |
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); } |