projects
/
platform
/
kernel
/
linux-exynos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
efdd17e
)
usb: ip: remove unnecessary & operation
author
Felipe Balbi
<felipe.balbi@linux.intel.com>
Wed, 28 Sep 2016 11:17:38 +0000
(14:17 +0300)
committer
Felipe Balbi
<felipe.balbi@linux.intel.com>
Thu, 3 Nov 2016 08:38:27 +0000
(10:38 +0200)
Now that usb_endpoint_maxp() only returns the lowest
11 bits from wMaxPacketSize, we can remove the &
operation from this driver.
Cc: Valentina Manea <valentina.manea.m@gmail.com>
Cc: Shuah Khan <shuah@kernel.org>
Cc: <linux-usb@vger.kernel.org>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/usbip/vudc_dev.c
patch
|
blob
|
history
diff --git
a/drivers/usb/usbip/vudc_dev.c
b/drivers/usb/usbip/vudc_dev.c
index
7091848
..
2fdcdeb
100644
(file)
--- a/
drivers/usb/usbip/vudc_dev.c
+++ b/
drivers/usb/usbip/vudc_dev.c
@@
-259,7
+259,7
@@
static int vep_enable(struct usb_ep *_ep,
spin_lock_irqsave(&udc->lock, flags);
- maxp = usb_endpoint_maxp(desc)
& 0x7ff
;
+ maxp = usb_endpoint_maxp(desc);
_ep->maxpacket = maxp;
ep->desc = desc;
ep->type = usb_endpoint_type(desc);