Commit 1e1eea0e authored by Felipe Balbi's avatar Felipe Balbi

usb: gadget: udc: s3c2410: 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: default avatarFelipe Balbi <felipe.balbi@linux.intel.com>
parent 090bdb5c
...@@ -1047,10 +1047,10 @@ static int s3c2410_udc_ep_enable(struct usb_ep *_ep, ...@@ -1047,10 +1047,10 @@ static int s3c2410_udc_ep_enable(struct usb_ep *_ep,
if (!dev->driver || dev->gadget.speed == USB_SPEED_UNKNOWN) if (!dev->driver || dev->gadget.speed == USB_SPEED_UNKNOWN)
return -ESHUTDOWN; return -ESHUTDOWN;
max = usb_endpoint_maxp(desc) & 0x1fff; max = usb_endpoint_maxp(desc);
local_irq_save(flags); local_irq_save(flags);
_ep->maxpacket = max & 0x7ff; _ep->maxpacket = max;
ep->ep.desc = desc; ep->ep.desc = desc;
ep->halted = 0; ep->halted = 0;
ep->bEndpointAddress = desc->bEndpointAddress; ep->bEndpointAddress = desc->bEndpointAddress;
......
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