You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
1.2 KiB

  1. From ec47f63d6b2aeebec25efd64a0788329fdec7d0d Mon Sep 17 00:00:00 2001
  2. From: illiliti <illiliti@protonmail.com>
  3. Date: Tue, 16 Nov 2021 16:17:47 +0300
  4. Subject: [PATCH 12/15] Revert "udev_enumerate.c: fix pipeware"
  5. This reverts commit 4510b27a9b589a0ce82fef776c2648e19e79f2a4.
  6. ---
  7. udev_enumerate.c | 9 +--------
  8. 1 file changed, 1 insertion(+), 8 deletions(-)
  9. --- a/udev_enumerate.c
  10. +++ b/udev_enumerate.c
  11. @@ -240,7 +240,7 @@ static int filter_sysattr(struct udev_en
  12. static void *add_device(void *ptr)
  13. {
  14. struct udev_enumerate_thread *thread = ptr;
  15. - struct udev_device *udev_device, *parent;
  16. + struct udev_device *udev_device;
  17. udev_device = udev_device_new_from_syspath(thread->udev_enumerate->udev, thread->path);
  18. @@ -256,14 +256,7 @@ static void *add_device(void *ptr)
  19. return NULL;
  20. }
  21. - parent = udev_device_get_parent(udev_device);
  22. -
  23. pthread_mutex_lock(thread->mutex);
  24. -
  25. - if (parent) {
  26. - udev_list_entry_add(&thread->udev_enumerate->devices, udev_device_get_syspath(parent), NULL, 0);
  27. - }
  28. -
  29. udev_list_entry_add(&thread->udev_enumerate->devices, udev_device_get_syspath(udev_device), NULL, 0);
  30. pthread_mutex_unlock(thread->mutex);