Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 41261
b: refs/heads/master
c: 0472074
h: refs/heads/master
i:
  41259: eb017bb
v: v3
  • Loading branch information
Luiz Fernando N. Capitulino authored and Greg Kroah-Hartman committed Dec 1, 2006
1 parent a4e62e9 commit 94234e1
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 4d823dd21d81c29a83a4672ac92e449fc5fa5cca
refs/heads/master: 0472074748444529188c77f62f0714f9ff7d7556
8 changes: 3 additions & 5 deletions trunk/drivers/usb/storage/usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -740,18 +740,16 @@ static int get_pipes(struct us_data *us)
ep = &altsetting->endpoint[i].desc;

/* Is it a BULK endpoint? */
if ((ep->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK)
== USB_ENDPOINT_XFER_BULK) {
if (usb_endpoint_xfer_bulk(ep)) {
/* BULK in or out? */
if (ep->bEndpointAddress & USB_DIR_IN)
if (usb_endpoint_dir_in(ep))
ep_in = ep;
else
ep_out = ep;
}

/* Is it an interrupt endpoint? */
else if ((ep->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK)
== USB_ENDPOINT_XFER_INT) {
else if (usb_endpoint_xfer_int(ep)) {
ep_int = ep;
}
}
Expand Down

0 comments on commit 94234e1

Please sign in to comment.