diff options
author | Felipe Balbi <felipe.balbi@linux.intel.com> | 2016-09-28 14:17:38 +0300 |
---|---|---|
committer | Felipe Balbi <felipe.balbi@linux.intel.com> | 2016-11-03 10:38:24 +0200 |
commit | 9ad587710a2f7704d47ddb49ce60c909be836c2b (patch) | |
tree | e8c5242d943fb4b8d2ed13b10b2ab6bc9142d467 /drivers/usb/gadget/composite.c | |
parent | 8437ab99a68363a1c56270932f705e56ff2b6b37 (diff) | |
download | linux-9ad587710a2f7704d47ddb49ce60c909be836c2b.tar.gz linux-9ad587710a2f7704d47ddb49ce60c909be836c2b.tar.xz |
usb: gadget: composite: remove unnecessary & operation
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>
Diffstat (limited to 'drivers/usb/gadget/composite.c')
-rw-r--r-- | drivers/usb/gadget/composite.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/composite.c b/drivers/usb/gadget/composite.c index 0426d3c1fff9..919d7d1b611c 100644 --- 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; |