From: Hans de G. <hde...@re...> - 2012-03-09 10:29:35
|
Remove a useless check then set of status because: 1. The check is always true; and 2. The new value status gets set to never gets used Signed-off-by: Hans de Goede <hde...@re...> --- libusb/os/linux_usbfs.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/libusb/os/linux_usbfs.c b/libusb/os/linux_usbfs.c index a7d8298..332400b 100644 --- a/libusb/os/linux_usbfs.c +++ b/libusb/os/linux_usbfs.c @@ -2096,9 +2096,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); -- 1.7.9.3 |