aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/usb/input/ati_remote.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/usb/input/ati_remote.c b/drivers/usb/input/ati_remote.c
index 787b847d38cc..ff23318dc301 100644
--- a/drivers/usb/input/ati_remote.c
+++ b/drivers/usb/input/ati_remote.c
@@ -630,11 +630,8 @@ static int ati_remote_alloc_buffers(struct usb_device *udev,
630 */ 630 */
631static void ati_remote_free_buffers(struct ati_remote *ati_remote) 631static void ati_remote_free_buffers(struct ati_remote *ati_remote)
632{ 632{
633 if (ati_remote->irq_urb) 633 usb_free_urb(ati_remote->irq_urb);
634 usb_free_urb(ati_remote->irq_urb); 634 usb_free_urb(ati_remote->out_urb);
635
636 if (ati_remote->out_urb)
637 usb_free_urb(ati_remote->out_urb);
638 635
639 usb_buffer_free(ati_remote->udev, DATA_BUFSIZE, 636 usb_buffer_free(ati_remote->udev, DATA_BUFSIZE,
640 ati_remote->inbuf, ati_remote->inbuf_dma); 637 ati_remote->inbuf, ati_remote->inbuf_dma);