Skip to content

Commit

Permalink
USB: onetouch: Use usb_endpoint_* functions
Browse files Browse the repository at this point in the history
Signed-off-by: Luiz Fernando N. Capitulino <lcapitulino@mandriva.com.br>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Luiz Fernando N. Capitulino authored and Greg Kroah-Hartman committed Dec 1, 2006
1 parent 240661c commit 66722a1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions drivers/usb/storage/onetouch.c
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,7 @@ int onetouch_connect_input(struct us_data *ss)
return -ENODEV;

endpoint = &interface->endpoint[2].desc;
if (!(endpoint->bEndpointAddress & USB_DIR_IN))
return -ENODEV;
if ((endpoint->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK)
!= USB_ENDPOINT_XFER_INT)
if (!usb_endpoint_is_int_in(endpoint))
return -ENODEV;

pipe = usb_rcvintpipe(udev, endpoint->bEndpointAddress);
Expand Down

0 comments on commit 66722a1

Please sign in to comment.