Commit 99bcb238 authored by Jaejoong Kim's avatar Jaejoong Kim Committed by Felipe Balbi

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: default avatarJaejoong Kim <climbbb.kim@gmail.com>
Signed-off-by: default avatarFelipe Balbi <felipe.balbi@linux.intel.com>
parent 06c47e62
...@@ -912,7 +912,7 @@ int usb_gadget_ep_match_desc(struct usb_gadget *gadget, ...@@ -912,7 +912,7 @@ int usb_gadget_ep_match_desc(struct usb_gadget *gadget,
return 0; return 0;
type = usb_endpoint_type(desc); type = usb_endpoint_type(desc);
max = 0x7ff & usb_endpoint_maxp(desc); max = usb_endpoint_maxp(desc);
if (usb_endpoint_dir_in(desc) && !ep->caps.dir_in) if (usb_endpoint_dir_in(desc) && !ep->caps.dir_in)
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment