Commit b4f162f7a958e001288bfe6c25fe914821939ffa

Con Kolivas 2014-05-15T14:37:35

inappropriate check

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/compat/libusb-1.0/libusb/io.c b/compat/libusb-1.0/libusb/io.c
index d19102a..55b17f1 100644
--- a/compat/libusb-1.0/libusb/io.c
+++ b/compat/libusb-1.0/libusb/io.c
@@ -1480,7 +1480,7 @@ int usbi_handle_transfer_completion(struct usbi_transfer *itransfer,
 	usbi_mutex_lock(&ctx->flying_transfers_lock);
 	/* FIXME: Sanity check for some race where this entry has already been
 	 * removed! */
-	if (status == LIBUSB_TRANSFER_NO_DEVICE && (&itransfer->list)->next)
+	if ((&itransfer->list)->next)
 		list_del(&itransfer->list);
 	if (usbi_using_timerfd(ctx)) {
 		r = arm_timerfd_for_next_timeout(ctx);