summaryrefslogtreecommitdiff
path: root/drivers/usb/misc/usbtest.c
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
commitefdd17e66718306c58cd8bab3a50cf8cfa645e8e (patch)
treeb00e4fcfbd91b8c7e28717f1176ff8516dc9f82c /drivers/usb/misc/usbtest.c
parent1e1eea0eeb39801a32103b948d02e4d811b92fd2 (diff)
usb: misc: usbtest: 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/misc/usbtest.c')
-rw-r--r--drivers/usb/misc/usbtest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/misc/usbtest.c b/drivers/usb/misc/usbtest.c
index 8edfbc8bf345..3525626bf086 100644
--- a/drivers/usb/misc/usbtest.c
+++ b/drivers/usb/misc/usbtest.c
@@ -2001,7 +2001,7 @@ test_queue(struct usbtest_dev *dev, struct usbtest_param_32 *param,
"iso period %d %sframes, wMaxPacket %d, transactions: %d\n",
1 << (desc->bInterval - 1),
(udev->speed == USB_SPEED_HIGH) ? "micro" : "",
- usb_endpoint_maxp(desc) & 0x7ff,
+ usb_endpoint_maxp(desc),
usb_endpoint_maxp_mult(desc));
dev_info(&dev->intf->dev,