From: Felipe Balbi Date: Wed, 28 Sep 2016 11:17:38 +0000 (+0300) Subject: usb: gadget: udc: dummy: remove unnecessary & operation X-Git-Tag: v4.14-rc1~1921^2~57^2~128 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c2b4d863e1dcb7f5b71926a45ee20de2f2c26cb2;p=platform%2Fkernel%2Flinux-rpi.git usb: gadget: udc: dummy: remove unnecessary & operation Now that usb_endpoint_maxp() only returns the lowest 11 bits from wMaxPacketSize, we can remove the & operation from this driver. Cc: Alan Stern Cc: Signed-off-by: Felipe Balbi --- diff --git a/drivers/usb/gadget/udc/dummy_hcd.c b/drivers/usb/gadget/udc/dummy_hcd.c index 14004cf..02b14e9 100644 --- a/drivers/usb/gadget/udc/dummy_hcd.c +++ b/drivers/usb/gadget/udc/dummy_hcd.c @@ -503,7 +503,7 @@ static int dummy_enable(struct usb_ep *_ep, * maximum packet size. * For SS devices the wMaxPacketSize is limited by 1024. */ - max = usb_endpoint_maxp(desc) & 0x7ff; + max = usb_endpoint_maxp(desc); /* drivers must not request bad settings, since lower levels * (hardware or its drivers) may not check. some endpoints