usb: hid-core 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
2381526a79
commit
6f07429fa2
@ -2080,13 +2080,9 @@ static struct hid_device *usb_hid_configure(struct usb_interface *intf)
|
||||
return hid;
|
||||
|
||||
fail:
|
||||
|
||||
if (hid->urbin)
|
||||
usb_free_urb(hid->urbin);
|
||||
if (hid->urbout)
|
||||
usb_free_urb(hid->urbout);
|
||||
if (hid->urbctrl)
|
||||
usb_free_urb(hid->urbctrl);
|
||||
usb_free_urb(hid->urbin);
|
||||
usb_free_urb(hid->urbout);
|
||||
usb_free_urb(hid->urbctrl);
|
||||
hid_free_buffers(dev, hid);
|
||||
hid_free_device(hid);
|
||||
|
||||
@ -2117,8 +2113,7 @@ static void hid_disconnect(struct usb_interface *intf)
|
||||
|
||||
usb_free_urb(hid->urbin);
|
||||
usb_free_urb(hid->urbctrl);
|
||||
if (hid->urbout)
|
||||
usb_free_urb(hid->urbout);
|
||||
usb_free_urb(hid->urbout);
|
||||
|
||||
hid_free_buffers(hid->dev, hid);
|
||||
hid_free_device(hid);
|
||||
|
Loading…
Reference in New Issue
Block a user