瀏覽代碼

usb: gadget: composite: 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>
Felipe Balbi 9 年之前
父節點
當前提交
9ad587710a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/usb/gadget/composite.c

+ 1 - 1
drivers/usb/gadget/composite.c

@@ -197,7 +197,7 @@ int config_ep_by_speed(struct usb_gadget *g,
 
 
 ep_found:
 ep_found:
 	/* commit results */
 	/* commit results */
-	_ep->maxpacket = usb_endpoint_maxp(chosen_desc) & 0x7ff;
+	_ep->maxpacket = usb_endpoint_maxp(chosen_desc);
 	_ep->desc = chosen_desc;
 	_ep->desc = chosen_desc;
 	_ep->comp_desc = NULL;
 	_ep->comp_desc = NULL;
 	_ep->maxburst = 0;
 	_ep->maxburst = 0;