Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 36404
b: refs/heads/master
c: 5bc66d5
h: refs/heads/master
v: v3
  • Loading branch information
Luiz Fernando N. Capitulino authored and Greg Kroah-Hartman committed Sep 27, 2006
1 parent d8278d6 commit 4474fb3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 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: b7cfaaaf86571732c7728e95a2231a860385463c
refs/heads/master: 5bc66d530b6c158795cb3fefd2106a09afb5e0f7
9 changes: 2 additions & 7 deletions trunk/drivers/usb/class/usblp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1021,18 +1021,13 @@ static int usblp_select_alts(struct usblp *usblp)
for (e = 0; e < ifd->desc.bNumEndpoints; e++) {
epd = &ifd->endpoint[e].desc;

if ((epd->bmAttributes&USB_ENDPOINT_XFERTYPE_MASK)!=
USB_ENDPOINT_XFER_BULK)
continue;

if (!(epd->bEndpointAddress & USB_ENDPOINT_DIR_MASK)) {
if (usb_endpoint_is_bulk_out(epd))
if (!epwrite)
epwrite = epd;

} else {
if (usb_endpoint_is_bulk_in(epd))
if (!epread)
epread = epd;
}
}

/* Ignore buggy hardware without the right endpoints. */
Expand Down

0 comments on commit 4474fb3

Please sign in to comment.