Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 36405
b: refs/heads/master
c: fbf81c2
h: refs/heads/master
i:
  36403: d8278d6
v: v3
  • Loading branch information
Luiz Fernando N. Capitulino authored and Greg Kroah-Hartman committed Sep 27, 2006
1 parent 4474fb3 commit f21f223
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: 5bc66d530b6c158795cb3fefd2106a09afb5e0f7
refs/heads/master: fbf81c29a3c05cd227cad89435d71c15e958feaf
9 changes: 2 additions & 7 deletions trunk/drivers/usb/core/hub.c
Original file line number Diff line number Diff line change
Expand Up @@ -868,13 +868,8 @@ static int hub_probe(struct usb_interface *intf, const struct usb_device_id *id)

endpoint = &desc->endpoint[0].desc;

/* Output endpoint? Curiouser and curiouser.. */
if (!(endpoint->bEndpointAddress & USB_DIR_IN))
goto descriptor_error;

/* If it's not an interrupt endpoint, we'd better punt! */
if ((endpoint->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK)
!= USB_ENDPOINT_XFER_INT)
/* If it's not an interrupt in endpoint, we'd better punt! */
if (!usb_endpoint_is_int_in(endpoint))
goto descriptor_error;

/* We found a hub */
Expand Down

0 comments on commit f21f223

Please sign in to comment.