diff options
author | Jaejoong Kim <climbbb.kim@gmail.com> | 2017-10-20 16:29:15 +0900 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-10-23 11:31:05 +0200 |
commit | 9f8e32dfca2aab9dea8a9db335e3a783b0035507 (patch) | |
tree | e6e83be282770c74148692dabd30c3da1127f594 /drivers/usb/misc | |
parent | e7eef2ced8e7b2b4a06fd66e7d03df1f90fa67c9 (diff) | |
download | op-kernel-dev-9f8e32dfca2aab9dea8a9db335e3a783b0035507.zip op-kernel-dev-9f8e32dfca2aab9dea8a9db335e3a783b0035507.tar.gz |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/misc/usbtest.c b/drivers/usb/misc/usbtest.c index b3fc602..3639e00 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); |