chiark / gitweb /
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 b864599..ce1f66e 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);
                                }