Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 183315
b: refs/heads/master
c: 11466f1
h: refs/heads/master
i:
  183313: ce5b093
  183311: 226195c
v: v3
  • Loading branch information
Stefan Seyfried authored and John W. Linville committed Dec 22, 2009
1 parent b8f9dbb commit aea87e6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 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: 5b6e2f12edd6c46e87a2775321f1912d19be4b35
refs/heads/master: 11466f1342a3400dd5e03da3d8c45aa4149c62d4
14 changes: 9 additions & 5 deletions trunk/drivers/net/wireless/zd1211rw/zd_usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1078,11 +1078,15 @@ static int eject_installer(struct usb_interface *intf)
int r;

/* Find bulk out endpoint */
endpoint = &iface_desc->endpoint[1].desc;
if (usb_endpoint_dir_out(endpoint) &&
usb_endpoint_xfer_bulk(endpoint)) {
bulk_out_ep = endpoint->bEndpointAddress;
} else {
for (r = 1; r >= 0; r--) {
endpoint = &iface_desc->endpoint[r].desc;
if (usb_endpoint_dir_out(endpoint) &&
usb_endpoint_xfer_bulk(endpoint)) {
bulk_out_ep = endpoint->bEndpointAddress;
break;
}
}
if (r == -1) {
dev_err(&udev->dev,
"zd1211rw: Could not find bulk out endpoint\n");
return -ENODEV;
Expand Down

0 comments on commit aea87e6

Please sign in to comment.