events_posix: Remove unnecessary and incorrect assertion
authorChris Dickens <christopher.a.dickens@gmail.com>
Tue, 25 Aug 2020 16:57:06 +0000 (09:57 -0700)
committerChris Dickens <christopher.a.dickens@gmail.com>
Tue, 25 Aug 2020 16:57:06 +0000 (09:57 -0700)
Thomas Chiantia reports that the POSIX events abstraction is failing
periodically because of incorrect assertion logic. Remove it as there is
another (correct) check further into the function that will serve check
the intended condition.

Closes #775

Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
libusb/os/events_posix.c
libusb/version_nano.h

index 952ea5f1e019f2287e2efe0124ca71d442245c92..b74189b94b3c7f75e3e02f9dff9456986ed90df4 100644 (file)
@@ -254,7 +254,6 @@ int usbi_wait_for_events(struct libusb_context *ctx,
        }
 #endif
 
-       assert(num_ready > 0);
        if (!num_ready)
                goto done;
 
index a0044a0fa4d5aa2912f9746d14f6f355dd6ad317..829e7a08cee53a06a3816192fa6ea06220863535 100644 (file)
@@ -1 +1 @@
-#define LIBUSB_NANO 11550
+#define LIBUSB_NANO 11551