提交 c2b4d863 编写于 作者: F Felipe Balbi

usb: gadget: udc: dummy: 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: Alan Stern <stern@rowland.harvard.edu>
Cc: <linux-usb@vger.kernel.org>
Signed-off-by: NFelipe Balbi <felipe.balbi@linux.intel.com>
上级 cc2e895c
...@@ -503,7 +503,7 @@ static int dummy_enable(struct usb_ep *_ep, ...@@ -503,7 +503,7 @@ static int dummy_enable(struct usb_ep *_ep,
* maximum packet size. * maximum packet size.
* For SS devices the wMaxPacketSize is limited by 1024. * For SS devices the wMaxPacketSize is limited by 1024.
*/ */
max = usb_endpoint_maxp(desc) & 0x7ff; max = usb_endpoint_maxp(desc);
/* drivers must not request bad settings, since lower levels /* drivers must not request bad settings, since lower levels
* (hardware or its drivers) may not check. some endpoints * (hardware or its drivers) may not check. some endpoints
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册