summaryrefslogtreecommitdiffstats
path: root/drivers/usb/input/ati_remote.c
diff options
context:
space:
mode:
authorMariusz Kozlowski <m.kozlowski@tuxland.pl>2006-11-08 15:35:46 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2006-12-01 14:23:33 -0800
commit459f836a612d28f224dbbc306ab63187014a6503 (patch)
treef8337a746df44933e80529016a756cb6957368bc /drivers/usb/input/ati_remote.c
parentf988f272fe8de462045e9f298e5b7f1e39b2e53a (diff)
downloadop-kernel-dev-459f836a612d28f224dbbc306ab63187014a6503.zip
op-kernel-dev-459f836a612d28f224dbbc306ab63187014a6503.tar.gz
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>
Diffstat (limited to 'drivers/usb/input/ati_remote.c')
-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 787b847..ff23318 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);
OpenPOWER on IntegriCloud