Commit 1c236d41 authored by Jaejoong Kim's avatar Jaejoong Kim Committed by Felipe Balbi

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: default avatarJaejoong Kim <climbbb.kim@gmail.com>
Signed-off-by: default avatarFelipe Balbi <felipe.balbi@linux.intel.com>
parent 7521d479
...@@ -1908,7 +1908,7 @@ static struct urb *iso_alloc_urb( ...@@ -1908,7 +1908,7 @@ static struct urb *iso_alloc_urb(
if (bytes < 0 || !desc) if (bytes < 0 || !desc)
return NULL; return NULL;
maxp = 0x7ff & usb_endpoint_maxp(desc); maxp = usb_endpoint_maxp(desc);
maxp *= usb_endpoint_maxp_mult(desc); maxp *= usb_endpoint_maxp_mult(desc);
packets = DIV_ROUND_UP(bytes, maxp); packets = DIV_ROUND_UP(bytes, maxp);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment