]> err.no Git - systemd/commitdiff
remove redundant string copy in udev_rules_apply_format()
authorAlan Jenkins <alan-jenkins@tuffmail.co.uk>
Mon, 8 Sep 2008 19:59:27 +0000 (21:59 +0200)
committerKay Sievers <kay.sievers@vrfy.org>
Mon, 8 Sep 2008 19:59:27 +0000 (21:59 +0200)
udev/udev_rules.c

index b864599a9d5d980526d6b7560e20f609107ce893..ce1f66ecd6364e6b7621a8a9cba7c7672f9c5d35 100644 (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);
                                }