summaryrefslogtreecommitdiff
path: root/drivers/usb/misc/legousbtower.c
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2019-11-05 09:41:45 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-11-07 11:17:51 +0100
commitbafd1b1c2cee5513a400efffa58e9d02d8577423 (patch)
tree1f484f860926bddde34d515895ed0ecf96c66ad4 /drivers/usb/misc/legousbtower.c
parent728fcd55e9ac3c7058949d78a443bedc7251b320 (diff)
USB: legousbtower: stop interrupt-out URB unconditionally
Stop also the interrupt-out URB unconditionally in tower_abort_transfers() which is called from release() (for connected devices). Calling usb_kill_urb() for an idle URB is perfectly fine. Signed-off-by: Johan Hovold <johan@kernel.org> Link: https://lore.kernel.org/r/20191105084152.16322-8-johan@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/misc/legousbtower.c')
-rw-r--r--drivers/usb/misc/legousbtower.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/misc/legousbtower.c b/drivers/usb/misc/legousbtower.c
index 33533faa019e..3e409dfe172c 100644
--- a/drivers/usb/misc/legousbtower.c
+++ b/drivers/usb/misc/legousbtower.c
@@ -448,8 +448,7 @@ static void tower_abort_transfers (struct lego_usb_tower *dev)
{
/* shutdown transfer */
usb_kill_urb(dev->interrupt_in_urb);
- if (dev->interrupt_out_busy)
- usb_kill_urb(dev->interrupt_out_urb);
+ usb_kill_urb(dev->interrupt_out_urb);
}