projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
USB: use usb_endpoint_maxp() instead of le16_to_cpu()
[deliverable/linux.git]
/
drivers
/
usb
/
core
/
urb.c
diff --git
a/drivers/usb/core/urb.c
b/drivers/usb/core/urb.c
index ae334b067c13e873a2105497cf38a673a5f65f57..909625b91eb35a3a4096029d3fd46e0a6cb25bb4 100644
(file)
--- a/
drivers/usb/core/urb.c
+++ b/
drivers/usb/core/urb.c
@@
-350,7
+350,7
@@
int usb_submit_urb(struct urb *urb, gfp_t mem_flags)
dev->state < USB_STATE_CONFIGURED)
return -ENODEV;
- max =
le16_to_cpu(ep->desc.wMaxPacketSize
);
+ max =
usb_endpoint_maxp(&ep->desc
);
if (max <= 0) {
dev_dbg(&dev->dev,
"bogus endpoint ep%d%s in %s (bad maxpacket %d)\n",
This page took
0.026471 seconds
and
5
git commands to generate.