diff options
author | Kay Sievers <kay@vrfy.org> | 2014-11-13 13:50:01 +0100 |
---|---|---|
committer | Kay Sievers <kay@vrfy.org> | 2014-11-13 13:50:01 +0100 |
commit | 41b848b0ea674dba135d5d5f82b87d126d967fcf (patch) | |
tree | efae88229c6d8a0b7a0f7350bd9035e7876001ed /src/libudev/libudev-device.c | |
parent | 25e773eeb4f853804e1bf0dbd9a184f23e9b2a97 (diff) |
udev: move global property handling from libudev to udevd
Diffstat (limited to 'src/libudev/libudev-device.c')
-rw-r--r-- | src/libudev/libudev-device.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/libudev/libudev-device.c b/src/libudev/libudev-device.c index 506798f22e..37e75d280f 100644 --- a/src/libudev/libudev-device.c +++ b/src/libudev/libudev-device.c @@ -642,7 +642,6 @@ void udev_device_set_info_loaded(struct udev_device *device) struct udev_device *udev_device_new(struct udev *udev) { struct udev_device *udev_device; - struct udev_list_entry *list_entry; if (udev == NULL) { errno = EINVAL; @@ -662,11 +661,7 @@ struct udev_device *udev_device_new(struct udev *udev) udev_list_init(udev, &udev_device->sysattr_list, false); udev_list_init(udev, &udev_device->tags_list, true); udev_device->watch_handle = -1; - /* copy global properties */ - udev_list_entry_foreach(list_entry, udev_get_properties_list_entry(udev)) - udev_device_add_property(udev_device, - udev_list_entry_get_name(list_entry), - udev_list_entry_get_value(list_entry)); + return udev_device; } |