Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 5483
b: refs/heads/master
c: 86d3074
h: refs/heads/master
i:
  5481: 702f10a
  5479: 1bd47f7
v: v3
  • Loading branch information
Alan Stern authored and Linus Torvalds committed Jul 29, 2005
1 parent c08a8ee commit c230d18
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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: 4a0d73c463765ce34b22ac3924d0661caf2a7539
refs/heads/master: 86d30741e480f40676c2173e1153368a4846da48
6 changes: 4 additions & 2 deletions trunk/drivers/usb/core/message.c
Original file line number Diff line number Diff line change
Expand Up @@ -985,8 +985,10 @@ void usb_disable_device(struct usb_device *dev, int skip_ep0)
for (i = 0; i < dev->actconfig->desc.bNumInterfaces; i++) {
struct usb_interface *interface;

/* remove this interface */
/* remove this interface if it has been registered */
interface = dev->actconfig->interface[i];
if (!klist_node_attached(&interface->dev.knode_bus))
continue;
dev_dbg (&dev->dev, "unregistering interface %s\n",
interface->dev.bus_id);
usb_remove_sysfs_intf_files(interface);
Expand Down Expand Up @@ -1439,7 +1441,7 @@ int usb_set_configuration(struct usb_device *dev, int configuration)
}
}

return ret;
return 0;
}

// synchronous request completion model
Expand Down

0 comments on commit c230d18

Please sign in to comment.