From: Mariusz Kozlowski Date: Wed, 8 Nov 2006 14:37:00 +0000 (+0100) Subject: usb: usbmidi kill urb cleanup X-Git-Tag: v2.6.20-rc1~34^2~40^2~472^2~32 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f5e135af8737bdc57168cddb3fd83028b25c26cd;p=linux-2.6 usb: usbmidi kill urb cleanup - usb_kill_urb() cleanup Signed-off-by: Mariusz Kozlowski Signed-off-by: Greg Kroah-Hartman --- diff --git a/sound/usb/usbmidi.c b/sound/usb/usbmidi.c index b7c5e59b22..24f5a26c5f 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); } }