diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2008-10-02 11:54:33 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2008-10-02 11:54:33 +0200 |
commit | 13ddea815496b32bd0ae0a648cdc50af28d69bb1 (patch) | |
tree | b8737fbc7b0afa6d6dd2db474c7380f88497f40d /udev/udevadm-trigger.c | |
parent | d6b148cde2a8ca6dc32af2e1d95824ac3be926db (diff) |
libudev: enumerate - add_device() -> add_syspath()
Diffstat (limited to 'udev/udevadm-trigger.c')
-rw-r--r-- | udev/udevadm-trigger.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/udev/udevadm-trigger.c b/udev/udevadm-trigger.c index 2c4954761e..8d25f92399 100644 --- a/udev/udevadm-trigger.c +++ b/udev/udevadm-trigger.c @@ -71,16 +71,8 @@ static int scan_failed(struct udev_enumerate *udev_enumerate) udev_queue = udev_queue_new(udev); if (udev_queue == NULL) return -1; - udev_list_entry_foreach(list_entry, udev_queue_get_failed_list_entry(udev_queue)) { - struct udev_device *device; - - device = udev_device_new_from_syspath(udev, udev_list_entry_get_name(list_entry)); - if (device == NULL) - continue; - info(udev, "add '%s'\n", udev_device_get_syspath(device)); - udev_enumerate_add_device(udev_enumerate, device); - udev_device_unref(device); - } + udev_list_entry_foreach(list_entry, udev_queue_get_failed_list_entry(udev_queue)) + udev_enumerate_add_syspath(udev_enumerate, udev_list_entry_get_name(list_entry)); return 0; } |