summaryrefslogtreecommitdiff
path: root/drivers/usb/gadget/udc
diff options
context:
space:
mode:
authorFelipe Balbi <felipe.balbi@linux.intel.com>2016-09-28 14:17:38 +0300
committerFelipe Balbi <felipe.balbi@linux.intel.com>2016-11-03 11:38:28 +0300
commit9d8ee9c4b65176dd7e79b444d6da0288edca2efc (patch)
treebc18fde58e8245a0129b8acbb531f1097a2f9d94 /drivers/usb/gadget/udc
parent0eb862e9c4f7a6a3abee25bc561ffdbe3d57a9d1 (diff)
downloadlinux-9d8ee9c4b65176dd7e79b444d6da0288edca2efc.tar.xz
usb: gadget: udc: mv: 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>
Diffstat (limited to 'drivers/usb/gadget/udc')
-rw-r--r--drivers/usb/gadget/udc/mv_udc_core.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/usb/gadget/udc/mv_udc_core.c b/drivers/usb/gadget/udc/mv_udc_core.c
index 542b70a83ee6..d82a91bddbd9 100644
--- a/drivers/usb/gadget/udc/mv_udc_core.c
+++ b/drivers/usb/gadget/udc/mv_udc_core.c
@@ -495,7 +495,6 @@ static int mv_ep_enable(struct usb_ep *_ep,
case USB_ENDPOINT_XFER_ISOC:
/* Calculate transactions needed for high bandwidth iso */
mult = usb_endpoint_maxp_mult(desc);
- max = max & 0x7ff; /* bit 0~10 */
/* 3 transactions at most */
if (mult > 3)
goto en_done;