summaryrefslogtreecommitdiffstats
path: root/drivers/usb/usbip
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 10:38:27 +0200
commit14f91dd524c42cdf137bda01c44e5e2f69a4c25e (patch)
tree5f83c1c695d1223ac0125bbdee4d43e110de3a08 /drivers/usb/usbip
parentefdd17e66718306c58cd8bab3a50cf8cfa645e8e (diff)
downloadlinux-14f91dd524c42cdf137bda01c44e5e2f69a4c25e.tar.gz
linux-14f91dd524c42cdf137bda01c44e5e2f69a4c25e.tar.bz2
linux-14f91dd524c42cdf137bda01c44e5e2f69a4c25e.zip
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: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/usb/usbip')
-rw-r--r--drivers/usb/usbip/vudc_dev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/usbip/vudc_dev.c b/drivers/usb/usbip/vudc_dev.c
index 7091848df6c8..2fdcdeb13a86 100644
--- a/drivers/usb/usbip/vudc_dev.c
+++ b/drivers/usb/usbip/vudc_dev.c
@@ -259,7 +259,7 @@ static int vep_enable(struct usb_ep *_ep,
spin_lock_irqsave(&udc->lock, flags);
- maxp = usb_endpoint_maxp(desc) & 0x7ff;
+ maxp = usb_endpoint_maxp(desc);
_ep->maxpacket = maxp;
ep->desc = desc;
ep->type = usb_endpoint_type(desc);