diff options
author | Mariusz Kozlowski <m.kozlowski@tuxland.pl> | 2006-11-08 14:36:07 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-12-01 22:23:34 (GMT) |
commit | df43121463d2e6dde9f7e40a7720e111e4cc600e (patch) | |
tree | 5d52e4dca2737b2f66d9f984b3c575b8984be9ed | |
parent | f53510e8c49d00085a820ae98ca4753d4487dbad (diff) | |
download | linux-df43121463d2e6dde9f7e40a7720e111e4cc600e.tar.xz |
usb: phidgetkit 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>
-rw-r--r-- | drivers/usb/misc/phidgetkit.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/misc/phidgetkit.c b/drivers/usb/misc/phidgetkit.c index 0dc0d03..9110793 100644 --- a/drivers/usb/misc/phidgetkit.c +++ b/drivers/usb/misc/phidgetkit.c @@ -650,8 +650,7 @@ out2: device_remove_file(kit->dev, &dev_output_attrs[i]); out: if (kit) { - if (kit->irq) - usb_free_urb(kit->irq); + usb_free_urb(kit->irq); if (kit->data) usb_buffer_free(dev, URB_INT_SIZE, kit->data, kit->data_dma); if (kit->dev) |