summaryrefslogtreecommitdiffstats
path: root/sound/usb/usbmidi.c
diff options
context:
space:
mode:
authorMariusz Kozlowski <m.kozlowski@tuxland.pl>2006-11-08 15:37:00 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2006-12-01 14:23:35 -0800
commitf5e135af8737bdc57168cddb3fd83028b25c26cd (patch)
treeccedaec999e53793a114a22561ed2f73e2aef9c6 /sound/usb/usbmidi.c
parentbcb54a54033ff9359cf64e4283e4f4b92bf9132f (diff)
downloadop-kernel-dev-f5e135af8737bdc57168cddb3fd83028b25c26cd.zip
op-kernel-dev-f5e135af8737bdc57168cddb3fd83028b25c26cd.tar.gz
usb: usbmidi kill urb cleanup
- usb_kill_urb() cleanup Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'sound/usb/usbmidi.c')
-rw-r--r--sound/usb/usbmidi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/usb/usbmidi.c b/sound/usb/usbmidi.c
index b7c5e59..24f5a26 100644
--- a/sound/usb/usbmidi.c
+++ b/sound/usb/usbmidi.c
@@ -981,7 +981,7 @@ void snd_usbmidi_disconnect(struct list_head* p)
if (umidi->usb_protocol_ops->finish_out_endpoint)
umidi->usb_protocol_ops->finish_out_endpoint(ep->out);
}
- if (ep->in && ep->in->urb)
+ if (ep->in)
usb_kill_urb(ep->in->urb);
}
}
OpenPOWER on IntegriCloud