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:25 +0200 |
commit | 44fbbf1f837f99cae0970bd72fefd72d90d73016 (patch) | |
tree | 162023bcb34181258b3da6b7475339c089e5074a /drivers/usb/gadget | |
parent | 9ad587710a2f7704d47ddb49ce60c909be836c2b (diff) | |
download | linux-44fbbf1f837f99cae0970bd72fefd72d90d73016.tar.gz linux-44fbbf1f837f99cae0970bd72fefd72d90d73016.tar.bz2 linux-44fbbf1f837f99cae0970bd72fefd72d90d73016.zip |
usb: gadget: udc: atmel: remove unnecessary & operation
Now that usb_endpoint_maxp() only returns the lowest
11 bits from wMaxPacketSize, we can remove the &
operation from this driver.
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Cc: <linux-usb@vger.kernel.org>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/usb/gadget')
-rw-r--r-- | drivers/usb/gadget/udc/atmel_usba_udc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/udc/atmel_usba_udc.c b/drivers/usb/gadget/udc/atmel_usba_udc.c index c57012b1ddf4..125680db9379 100644 --- a/drivers/usb/gadget/udc/atmel_usba_udc.c +++ b/drivers/usb/gadget/udc/atmel_usba_udc.c @@ -529,7 +529,7 @@ usba_ep_enable(struct usb_ep *_ep, const struct usb_endpoint_descriptor *desc) DBG(DBG_GADGET, "%s: ep_enable: desc=%p\n", ep->ep.name, desc); - maxpacket = usb_endpoint_maxp(desc) & 0x7ff; + maxpacket = usb_endpoint_maxp(desc); if (((desc->bEndpointAddress & USB_ENDPOINT_NUMBER_MASK) != ep->index) || ep->index == 0 |