From: Jaejoong Kim Date: Fri, 20 Oct 2017 07:29:15 +0000 (+0900) Subject: usb: misc: usbtest: remove duplicate & operation X-Git-Tag: v4.15-rc1~140^2~120 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=9f8e32dfca2aab9dea8a9db335e3a783b0035507;p=uclinux-h8%2Flinux.git 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 Signed-off-by: Greg Kroah-Hartman --- 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);