提交 722232bc 编写于 作者: O Oliver Neukum 提交者: Dmitry Torokhov

Input: usbtouchscreen - remove unneeded usb_kill_urb

usb_kill_urb() in disconnect is not needed as unregistering will cause
close() to be called.
Signed-off-by: NOliver Neukum <oliver@neukum.org>
Signed-off-by: NDmitry Torokhov <dtor@mail.ru>
上级 985f37f8
......@@ -1087,7 +1087,7 @@ static void usbtouch_disconnect(struct usb_interface *intf)
dbg("%s - usbtouch is initialized, cleaning up", __func__);
usb_set_intfdata(intf, NULL);
usb_kill_urb(usbtouch->irq);
/* this will stop IO via close */
input_unregister_device(usbtouch->input);
usb_free_urb(usbtouch->irq);
usbtouch_free_buffers(interface_to_usbdev(intf), usbtouch);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册