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: Felipe Balbi <felipe.balbi@linux.intel.com>
This commit is contained in:
parent
7521d47960
commit
1c236d411d
@ -1908,7 +1908,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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user