diff options
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/input/hid-core.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/drivers/usb/input/hid-core.c b/drivers/usb/input/hid-core.c index 2c12b04da111..f7a67c4db515 100644 --- a/drivers/usb/input/hid-core.c +++ b/drivers/usb/input/hid-core.c | |||
@@ -2080,13 +2080,9 @@ static struct hid_device *usb_hid_configure(struct usb_interface *intf) | |||
2080 | return hid; | 2080 | return hid; |
2081 | 2081 | ||
2082 | fail: | 2082 | fail: |
2083 | 2083 | usb_free_urb(hid->urbin); | |
2084 | if (hid->urbin) | 2084 | usb_free_urb(hid->urbout); |
2085 | usb_free_urb(hid->urbin); | 2085 | usb_free_urb(hid->urbctrl); |
2086 | if (hid->urbout) | ||
2087 | usb_free_urb(hid->urbout); | ||
2088 | if (hid->urbctrl) | ||
2089 | usb_free_urb(hid->urbctrl); | ||
2090 | hid_free_buffers(dev, hid); | 2086 | hid_free_buffers(dev, hid); |
2091 | hid_free_device(hid); | 2087 | hid_free_device(hid); |
2092 | 2088 | ||
@@ -2117,8 +2113,7 @@ static void hid_disconnect(struct usb_interface *intf) | |||
2117 | 2113 | ||
2118 | usb_free_urb(hid->urbin); | 2114 | usb_free_urb(hid->urbin); |
2119 | usb_free_urb(hid->urbctrl); | 2115 | usb_free_urb(hid->urbctrl); |
2120 | if (hid->urbout) | 2116 | usb_free_urb(hid->urbout); |
2121 | usb_free_urb(hid->urbout); | ||
2122 | 2117 | ||
2123 | hid_free_buffers(hid->dev, hid); | 2118 | hid_free_buffers(hid->dev, hid); |
2124 | hid_free_device(hid); | 2119 | hid_free_device(hid); |