projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8437ab9
)
usb: gadget: composite: remove unnecessary & operation
author
Felipe Balbi
<felipe.balbi@linux.intel.com>
Wed, 28 Sep 2016 11:17:38 +0000
(14:17 +0300)
committer
Felipe Balbi
<felipe.balbi@linux.intel.com>
Thu, 3 Nov 2016 08:38:24 +0000
(10:38 +0200)
Now that usb_endpoint_maxp() only returns the lowest
11 bits from wMaxPacketSize, we can remove the &
operation from this driver.
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/composite.c
patch
|
blob
|
history
diff --git
a/drivers/usb/gadget/composite.c
b/drivers/usb/gadget/composite.c
index 0426d3c1fff92ef85e158c26c9c6dd1529360a0b..919d7d1b611c3a577e82e32314f60660f03c7665 100644
(file)
--- a/
drivers/usb/gadget/composite.c
+++ b/
drivers/usb/gadget/composite.c
@@
-197,7
+197,7
@@
int config_ep_by_speed(struct usb_gadget *g,
ep_found:
/* commit results */
- _ep->maxpacket = usb_endpoint_maxp(chosen_desc)
& 0x7ff
;
+ _ep->maxpacket = usb_endpoint_maxp(chosen_desc);
_ep->desc = chosen_desc;
_ep->comp_desc = NULL;
_ep->maxburst = 0;