summaryrefslogtreecommitdiff
path: root/drivers/usb/input
diff options
context:
space:
mode:
authorMariusz Kozlowski <m.kozlowski@tuxland.pl>2006-11-08 14:35:58 (GMT)
committerGreg Kroah-Hartman <gregkh@suse.de>2006-12-01 22:23:33 (GMT)
commit4ba0b2ed583b80cb26b9c8d8a8b418f677ec4a83 (patch)
tree3a0e19f3dd15c3a7e87cdaba484abf5491f270da /drivers/usb/input
parent6f07429fa295a04e06c93601e6c597e7a6d95495 (diff)
downloadlinux-fsl-qoriq-4ba0b2ed583b80cb26b9c8d8a8b418f677ec4a83.tar.xz
usb: usbkbd 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')
-rw-r--r--drivers/usb/input/usbkbd.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/usb/input/usbkbd.c b/drivers/usb/input/usbkbd.c
index b6c2ba7..dac8864 100644
--- a/drivers/usb/input/usbkbd.c
+++ b/drivers/usb/input/usbkbd.c
@@ -208,10 +208,8 @@ static int usb_kbd_alloc_mem(struct usb_device *dev, struct usb_kbd *kbd)
static void usb_kbd_free_mem(struct usb_device *dev, struct usb_kbd *kbd)
{
- if (kbd->irq)
- usb_free_urb(kbd->irq);
- if (kbd->led)
- usb_free_urb(kbd->led);
+ usb_free_urb(kbd->irq);
+ usb_free_urb(kbd->led);
if (kbd->new)
usb_buffer_free(dev, 8, kbd->new, kbd->new_dma);
if (kbd->cr)