diff options
Diffstat (limited to 'drivers/usb/misc/phidgetkit.c')
-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 0dc0d034cc9a..9110793f81d3 100644 --- a/drivers/usb/misc/phidgetkit.c +++ b/drivers/usb/misc/phidgetkit.c | |||
@@ -650,8 +650,7 @@ out2: | |||
650 | device_remove_file(kit->dev, &dev_output_attrs[i]); | 650 | device_remove_file(kit->dev, &dev_output_attrs[i]); |
651 | out: | 651 | out: |
652 | if (kit) { | 652 | if (kit) { |
653 | if (kit->irq) | 653 | usb_free_urb(kit->irq); |
654 | usb_free_urb(kit->irq); | ||
655 | if (kit->data) | 654 | if (kit->data) |
656 | usb_buffer_free(dev, URB_INT_SIZE, kit->data, kit->data_dma); | 655 | usb_buffer_free(dev, URB_INT_SIZE, kit->data, kit->data_dma); |
657 | if (kit->dev) | 656 | if (kit->dev) |