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>
This commit is contained in:
parent
f53510e8c4
commit
df43121463
1 changed files with 1 additions and 2 deletions
|
@ -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)
|
||||
|
|
Reference in a new issue