mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-24 09:50:04 +00:00
usb: gadget: udc: net2272: 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>
This commit is contained in:
parent
c2b4d863e1
commit
8c683c43fb
1 changed files with 2 additions and 2 deletions
|
@ -202,10 +202,10 @@ net2272_enable(struct usb_ep *_ep, const struct usb_endpoint_descriptor *desc)
|
|||
if (!dev->driver || dev->gadget.speed == USB_SPEED_UNKNOWN)
|
||||
return -ESHUTDOWN;
|
||||
|
||||
max = usb_endpoint_maxp(desc) & 0x1fff;
|
||||
max = usb_endpoint_maxp(desc);
|
||||
|
||||
spin_lock_irqsave(&dev->lock, flags);
|
||||
_ep->maxpacket = max & 0x7fff;
|
||||
_ep->maxpacket = max;
|
||||
ep->desc = desc;
|
||||
|
||||
/* net2272_ep_reset() has already been called */
|
||||
|
|
Loading…
Reference in a new issue