aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorLuiz Fernando N. Capitulino <lcapitulino@mandriva.com.br>2006-09-27 14:58:53 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2006-09-27 14:58:53 -0400
commitfbf81c29a3c05cd227cad89435d71c15e958feaf (patch)
tree1534c05a69bcd0d0c0f8b0ea9d5c51a3b8292f38 /drivers/usb
parent5bc66d530b6c158795cb3fefd2106a09afb5e0f7 (diff)
USB: hub: Use usb_endpoint_* functions.
Signed-off-by: Luiz Fernando N. Capitulino <lcapitulino@mandriva.com.br> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/core/hub.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c
index 64e80b964b8..3924dd080be 100644
--- a/drivers/usb/core/hub.c
+++ b/drivers/usb/core/hub.c
@@ -868,13 +868,8 @@ descriptor_error:
868 868
869 endpoint = &desc->endpoint[0].desc; 869 endpoint = &desc->endpoint[0].desc;
870 870
871 /* Output endpoint? Curiouser and curiouser.. */ 871 /* If it's not an interrupt in endpoint, we'd better punt! */
872 if (!(endpoint->bEndpointAddress & USB_DIR_IN)) 872 if (!usb_endpoint_is_int_in(endpoint))
873 goto descriptor_error;
874
875 /* If it's not an interrupt endpoint, we'd better punt! */
876 if ((endpoint->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK)
877 != USB_ENDPOINT_XFER_INT)
878 goto descriptor_error; 873 goto descriptor_error;
879 874
880 /* We found a hub */ 875 /* We found a hub */