diff options
author | Mariusz Kozlowski <m.kozlowski@tuxland.pl> | 2006-11-08 09:36:18 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-12-01 17:23:34 -0500 |
commit | 5483eb1300fc052c294a9dac57d5bf6653126efd (patch) | |
tree | 1daac108c394ce0d59ffcf8e3dd930f447c0389f /drivers/usb/misc/phidgetmotorcontrol.c | |
parent | df43121463d2e6dde9f7e40a7720e111e4cc600e (diff) |
usb: phidgetmotorcontrol 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/misc/phidgetmotorcontrol.c')
-rw-r--r-- | drivers/usb/misc/phidgetmotorcontrol.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/misc/phidgetmotorcontrol.c b/drivers/usb/misc/phidgetmotorcontrol.c index 7702a4f7b082..c3469b0a67c2 100644 --- a/drivers/usb/misc/phidgetmotorcontrol.c +++ b/drivers/usb/misc/phidgetmotorcontrol.c | |||
@@ -392,8 +392,7 @@ out2: | |||
392 | device_remove_file(mc->dev, &dev_attrs[i]); | 392 | device_remove_file(mc->dev, &dev_attrs[i]); |
393 | out: | 393 | out: |
394 | if (mc) { | 394 | if (mc) { |
395 | if (mc->irq) | 395 | usb_free_urb(mc->irq); |
396 | usb_free_urb(mc->irq); | ||
397 | if (mc->data) | 396 | if (mc->data) |
398 | usb_buffer_free(dev, URB_INT_SIZE, mc->data, mc->data_dma); | 397 | usb_buffer_free(dev, URB_INT_SIZE, mc->data, mc->data_dma); |
399 | if (mc->dev) | 398 | if (mc->dev) |