aboutsummaryrefslogtreecommitdiffstats
path: root/libusb
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2012-03-26 23:00:28 +0100
committerPete Batard <pete@akeo.ie>2012-03-26 23:03:25 +0100
commit75883a2b2ed3e0b8099e390b09f199c48ccb0b25 (patch)
tree72b7b018b6a5ce1e79e06f701cc2c043b56899cf /libusb
parentc6a34f46c1c9ffc5a6dbf3fce59522aa753c75b9 (diff)
downloadandroid_external_libusbx-75883a2b2ed3e0b8099e390b09f199c48ccb0b25.tar.gz
android_external_libusbx-75883a2b2ed3e0b8099e390b09f199c48ccb0b25.tar.bz2
android_external_libusbx-75883a2b2ed3e0b8099e390b09f199c48ccb0b25.zip
Linux: Remove unneeded status assignation
* status value was never used
Diffstat (limited to 'libusb')
-rw-r--r--libusb/os/linux_usbfs.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/libusb/os/linux_usbfs.c b/libusb/os/linux_usbfs.c
index d41aac8..8d88c87 100644
--- a/libusb/os/linux_usbfs.c
+++ b/libusb/os/linux_usbfs.c
@@ -2122,9 +2122,6 @@ static int handle_iso_completion(struct usbi_transfer *itransfer,
if (tpriv->reap_action != NORMAL) { /* cancelled or submit_fail */
usbi_dbg("CANCEL: urb status %d", urb->status);
- if (status == LIBUSB_TRANSFER_COMPLETED)
- status = LIBUSB_TRANSFER_ERROR;
-
if (tpriv->num_retired == num_urbs) {
usbi_dbg("CANCEL: last URB handled, reporting");
free_iso_urbs(tpriv);