Commit 14f91dd5 authored by Felipe Balbi's avatar Felipe Balbi

usb: ip: 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: Valentina Manea <valentina.manea.m@gmail.com>
Cc: Shuah Khan <shuah@kernel.org>
Cc: <linux-usb@vger.kernel.org>
Signed-off-by: default avatarFelipe Balbi <felipe.balbi@linux.intel.com>
parent efdd17e6
...@@ -259,7 +259,7 @@ static int vep_enable(struct usb_ep *_ep, ...@@ -259,7 +259,7 @@ static int vep_enable(struct usb_ep *_ep,
spin_lock_irqsave(&udc->lock, flags); spin_lock_irqsave(&udc->lock, flags);
maxp = usb_endpoint_maxp(desc) & 0x7ff; maxp = usb_endpoint_maxp(desc);
_ep->maxpacket = maxp; _ep->maxpacket = maxp;
ep->desc = desc; ep->desc = desc;
ep->type = usb_endpoint_type(desc); ep->type = usb_endpoint_type(desc);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment