summaryrefslogtreecommitdiffstats
path: root/drivers/usb/misc
diff options
context:
space:
mode:
authorJaejoong Kim <climbbb.kim@gmail.com>2017-10-20 16:29:15 +0900
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-10-23 11:31:05 +0200
commit9f8e32dfca2aab9dea8a9db335e3a783b0035507 (patch)
treee6e83be282770c74148692dabd30c3da1127f594 /drivers/usb/misc
parente7eef2ced8e7b2b4a06fd66e7d03df1f90fa67c9 (diff)
downloadtalos-obmc-linux-9f8e32dfca2aab9dea8a9db335e3a783b0035507.tar.gz
talos-obmc-linux-9f8e32dfca2aab9dea8a9db335e3a783b0035507.zip
usb: misc: usbtest: remove duplicate & operation
usb_endpoint_maxp() has an inline keyword and searches for bits[10:0] by & operation with 0x7ff. So, we can remove the duplicate & operation with 0x7ff. Signed-off-by: Jaejoong Kim <climbbb.kim@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/misc')
-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 b3fc602b2e24..3639e00a51a0 100644
--- a/drivers/usb/misc/usbtest.c
+++ b/drivers/usb/misc/usbtest.c
@@ -1909,7 +1909,7 @@ static struct urb *iso_alloc_urb(
if (bytes < 0 || !desc)
return NULL;
- maxp = 0x7ff & usb_endpoint_maxp(desc);
+ maxp = usb_endpoint_maxp(desc);
maxp *= usb_endpoint_maxp_mult(desc);
packets = DIV_ROUND_UP(bytes, maxp);
OpenPOWER on IntegriCloud