Skip to content

Commit

Permalink
usb: ati_remote free urb cleanup
Browse files Browse the repository at this point in the history
- usb_free_urb() cleanup

Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Mariusz Kozlowski authored and Greg Kroah-Hartman committed Dec 1, 2006
1 parent f988f27 commit 459f836
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions drivers/usb/input/ati_remote.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 459f836

Please sign in to comment.