diff options
author | Mariusz Kozlowski <m.kozlowski@tuxland.pl> | 2006-11-08 09:35:46 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-12-01 17:23:33 -0500 |
commit | 459f836a612d28f224dbbc306ab63187014a6503 (patch) | |
tree | f8337a746df44933e80529016a756cb6957368bc | |
parent | f988f272fe8de462045e9f298e5b7f1e39b2e53a (diff) |
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>
-rw-r--r-- | drivers/usb/input/ati_remote.c | 7 |
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 | */ |
631 | static void ati_remote_free_buffers(struct ati_remote *ati_remote) | 631 | static 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); |