Skip to content

Commit

Permalink
usb: phidgetmotorcontrol free urb cleanup
Browse files Browse the repository at this point in the history
- usb_free_urb() cleanup

Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Mariusz Kozlowski authored and Greg Kroah-Hartman committed Dec 1, 2006
1 parent df43121 commit 5483eb1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/usb/misc/phidgetmotorcontrol.c
Original file line number Diff line number Diff line change
Expand Up @@ -392,8 +392,7 @@ static int motorcontrol_probe(struct usb_interface *intf, const struct usb_devic
device_remove_file(mc->dev, &dev_attrs[i]);
out:
if (mc) {
if (mc->irq)
usb_free_urb(mc->irq);
usb_free_urb(mc->irq);
if (mc->data)
usb_buffer_free(dev, URB_INT_SIZE, mc->data, mc->data_dma);
if (mc->dev)
Expand Down

0 comments on commit 5483eb1

Please sign in to comment.