mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 21:57:43 +00:00
usb: chipidea: udc: remove unnecessary & operation
Now that usb_endpoint_maxp() only returns the lowest 11 bits from wMaxPacketSize, we can remove the & operation from this driver. Cc: Peter Chen <Peter.Chen@nxp.com> Cc: <linux-usb@vger.kernel.org> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
This commit is contained in:
parent
670216f4d3
commit
63b9e901e4
1 changed files with 1 additions and 1 deletions
|
@ -1253,7 +1253,7 @@ static int ep_enable(struct usb_ep *ep,
|
||||||
hwep->num = usb_endpoint_num(desc);
|
hwep->num = usb_endpoint_num(desc);
|
||||||
hwep->type = usb_endpoint_type(desc);
|
hwep->type = usb_endpoint_type(desc);
|
||||||
|
|
||||||
hwep->ep.maxpacket = usb_endpoint_maxp(desc) & 0x07ff;
|
hwep->ep.maxpacket = usb_endpoint_maxp(desc);
|
||||||
hwep->ep.mult = usb_endpoint_maxp_mult(desc);
|
hwep->ep.mult = usb_endpoint_maxp_mult(desc);
|
||||||
|
|
||||||
if (hwep->type == USB_ENDPOINT_XFER_CONTROL)
|
if (hwep->type == USB_ENDPOINT_XFER_CONTROL)
|
||||||
|
|
Loading…
Reference in a new issue