mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-23 05:56:14 -04:00
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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
e7eef2ced8
commit
9f8e32dfca
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user