Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 41290
b: refs/heads/master
c: 6f07429
h: refs/heads/master
v: v3
  • Loading branch information
Mariusz Kozlowski authored and Greg Kroah-Hartman committed Dec 1, 2006
1 parent 94bc4cd commit 3951839
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2381526a793582ad18b30af0e3013ccad1a8bcdb
refs/heads/master: 6f07429fa295a04e06c93601e6c597e7a6d95495
13 changes: 4 additions & 9 deletions trunk/drivers/usb/input/hid-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 3951839

Please sign in to comment.