Commit c5d61b4cb38bb203b06bc8de67acb13cbe7d3569

Con Kolivas 2013-10-02T06:53:25

Remove zero packet flag on usb as it's unsupported outside linux and unnecessary.

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/usbutils.c b/usbutils.c
index 119592c..14a2bf4 100644
--- a/usbutils.c
+++ b/usbutils.c
@@ -2212,7 +2212,6 @@ static void init_usb_transfer(struct usb_transfer *ut)
 	ut->transfer = libusb_alloc_transfer(0);
 	if (unlikely(!ut->transfer))
 		quit(1, "Failed to libusb_alloc_transfer");
-	ut->transfer->flags = LIBUSB_TRANSFER_ADD_ZERO_PACKET;
 	ut->transfer->user_data = ut;
 }