From: Mariusz Kozlowski Date: Wed, 8 Nov 2006 14:35:46 +0000 (+0100) Subject: usb: ati_remote free urb cleanup X-Git-Tag: v2.6.20-rc2~6^2~13^2~477^2~49 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=459f836a612d28f224dbbc306ab63187014a6503;p=linux-2.6-omap-h63xx.git usb: ati_remote free urb cleanup - usb_free_urb() cleanup Signed-off-by: Mariusz Kozlowski Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/input/ati_remote.c b/drivers/usb/input/ati_remote.c index 787b847d38c..ff23318dc30 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, */ 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);