wince: Do not differ between cancel / timeout ourselves
authorHans de Goede <hdegoede@redhat.com>
Mon, 6 Jun 2016 14:40:54 +0000 (16:40 +0200)
committerNathan Hjelm <hjelmn@me.com>
Wed, 17 Aug 2016 18:52:40 +0000 (12:52 -0600)
(itransfer->flags & USBI_TRANSFER_TIMED_OUT) is already checked by
usbi_handle_transfer_cancellation(), which wince_transfer_callback()
will call when status == LIBUSB_TRANSFER_CANCELLED. Leave this up
to the core, so that future changes to timeout handling do no break
wince.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
---
Note: untested

libusb/os/wince_usb.c
libusb/version_nano.h

index 85c584b..89b5e65 100644 (file)
@@ -720,13 +720,8 @@ static void wince_transfer_callback(
                status = LIBUSB_TRANSFER_TIMED_OUT;
                break;
        case ERROR_OPERATION_ABORTED:
-               if (itransfer->flags & USBI_TRANSFER_TIMED_OUT) {
-                       usbi_dbg("detected timeout");
-                       status = LIBUSB_TRANSFER_TIMED_OUT;
-               } else {
-                       usbi_dbg("detected operation aborted");
-                       status = LIBUSB_TRANSFER_CANCELLED;
-               }
+               usbi_dbg("detected operation aborted");
+               status = LIBUSB_TRANSFER_CANCELLED;
                break;
        default:
                usbi_err(ITRANSFER_CTX(itransfer), "detected I/O error: %s", windows_error_str(io_result));
index 74e5d3b..335ae07 100644 (file)
@@ -1 +1 @@
-#define LIBUSB_NANO 11129
+#define LIBUSB_NANO 11130