mirror of
https://github.com/torvalds/linux.git
synced 2024-11-12 07:01:57 +00:00
usb: ati_remote free urb cleanup
- usb_free_urb() cleanup Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
f988f272fe
commit
459f836a61
@ -630,11 +630,8 @@ static int ati_remote_alloc_buffers(struct usb_device *udev,
|
||||
*/
|
||||
static void ati_remote_free_buffers(struct ati_remote *ati_remote)
|
||||
{
|
||||
if (ati_remote->irq_urb)
|
||||
usb_free_urb(ati_remote->irq_urb);
|
||||
|
||||
if (ati_remote->out_urb)
|
||||
usb_free_urb(ati_remote->out_urb);
|
||||
usb_free_urb(ati_remote->irq_urb);
|
||||
usb_free_urb(ati_remote->out_urb);
|
||||
|
||||
usb_buffer_free(ati_remote->udev, DATA_BUFSIZE,
|
||||
ati_remote->inbuf, ati_remote->inbuf_dma);
|
||||
|
Loading…
Reference in New Issue
Block a user