summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libusb/os/windows_usb.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/libusb/os/windows_usb.c b/libusb/os/windows_usb.c
index 5a76a85..fbe848d 100644
--- a/libusb/os/windows_usb.c
+++ b/libusb/os/windows_usb.c
@@ -1805,12 +1805,7 @@ static void windows_transfer_callback(struct usbi_transfer *itransfer, uint32_t
switch(io_result) {
case NO_ERROR:
- if (transfer->endpoint & LIBUSB_ENDPOINT_IN) {
- // copy_transfer_data() is only needed on read operations
- status = priv->apib->copy_transfer_data(itransfer, io_size);
- } else {
- status = LIBUSB_TRANSFER_COMPLETED;
- }
+ status = priv->apib->copy_transfer_data(itransfer, io_size);
break;
case ERROR_GEN_FAILURE:
usbi_dbg("detected endpoint stall");