Commit b333d5bf authored by Luiz Fernando N. Capitulino's avatar Luiz Fernando N. Capitulino Committed by Greg Kroah-Hartman

USB: cdc_ether: Use usb_endpoint_* functions

Signed-off-by: default avatarLuiz Fernando N. Capitulino <lcapitulino@mandriva.com.br>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 16f96376
...@@ -200,8 +200,7 @@ next_desc: ...@@ -200,8 +200,7 @@ next_desc:
dev->status = &info->control->cur_altsetting->endpoint [0]; dev->status = &info->control->cur_altsetting->endpoint [0];
desc = &dev->status->desc; desc = &dev->status->desc;
if (desc->bmAttributes != USB_ENDPOINT_XFER_INT if (!usb_endpoint_is_int_in(desc)
|| !(desc->bEndpointAddress & USB_DIR_IN)
|| (le16_to_cpu(desc->wMaxPacketSize) || (le16_to_cpu(desc->wMaxPacketSize)
< sizeof(struct usb_cdc_notification)) < sizeof(struct usb_cdc_notification))
|| !desc->bInterval) { || !desc->bInterval) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment