Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 41262
b: refs/heads/master
c: 6f7cd44
h: refs/heads/master
v: v3
  • Loading branch information
Luiz Fernando N. Capitulino authored and Greg Kroah-Hartman committed Dec 1, 2006
1 parent 94234e1 commit 89fd6a5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 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: 0472074748444529188c77f62f0714f9ff7d7556
refs/heads/master: 6f7cd44162ca1bffd54f4090e67b9810bacb5d25
6 changes: 2 additions & 4 deletions trunk/drivers/usb/input/yealink.c
Original file line number Diff line number Diff line change
Expand Up @@ -859,10 +859,8 @@ static int usb_probe(struct usb_interface *intf, const struct usb_device_id *id)

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

yld = kzalloc(sizeof(struct yealink_dev), GFP_KERNEL);
if (!yld)
Expand Down

0 comments on commit 89fd6a5

Please sign in to comment.