OSDN Git Service

usb: gadget: udc: remove duplicate & operation
authorJaejoong Kim <climbbb.kim@gmail.com>
Fri, 20 Oct 2017 07:29:13 +0000 (16:29 +0900)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Fri, 20 Oct 2017 08:19:24 +0000 (11:19 +0300)
commit99bcb23851ffa19d8ad13cd35100990559aac82c
tree75a96e4841ebb12c3e5e401d73ef78f0d30716aa
parent06c47e6286d5afdd7b2e7e3c207f6906b3be3d4d
usb: gadget: udc: 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>
drivers/usb/gadget/udc/core.c