summaryrefslogtreecommitdiffstats
path: root/drivers/input
diff options
context:
space:
mode:
authorMariusz Kozlowski <m.kozlowski@tuxland.pl>2006-11-08 15:34:09 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2006-12-01 14:23:32 -0800
commit8f21d119f457ece27a69ac1dadd655deee6f2a20 (patch)
tree9a8af26ea2498d5c0908a25e01c675edb5415109 /drivers/input
parent6265d62f31e42cc839f929439a95f602d70d6bf7 (diff)
downloadop-kernel-dev-8f21d119f457ece27a69ac1dadd655deee6f2a20.zip
op-kernel-dev-8f21d119f457ece27a69ac1dadd655deee6f2a20.tar.gz
usb: iforce-usb 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/input')
-rw-r--r--drivers/input/joystick/iforce/iforce-usb.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/input/joystick/iforce/iforce-usb.c b/drivers/input/joystick/iforce/iforce-usb.c
index 105112f..80cdebc 100644
--- a/drivers/input/joystick/iforce/iforce-usb.c
+++ b/drivers/input/joystick/iforce/iforce-usb.c
@@ -178,9 +178,9 @@ static int iforce_usb_probe(struct usb_interface *intf,
fail:
if (iforce) {
- if (iforce->irq) usb_free_urb(iforce->irq);
- if (iforce->out) usb_free_urb(iforce->out);
- if (iforce->ctrl) usb_free_urb(iforce->ctrl);
+ usb_free_urb(iforce->irq);
+ usb_free_urb(iforce->out);
+ usb_free_urb(iforce->ctrl);
kfree(iforce);
}
OpenPOWER on IntegriCloud