diff options
Diffstat (limited to 'drivers/usb/core/urb.c')
-rw-r--r-- | drivers/usb/core/urb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/core/urb.c b/drivers/usb/core/urb.c index ae334b067c13..909625b91eb3 100644 --- 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) | |||
350 | dev->state < USB_STATE_CONFIGURED) | 350 | dev->state < USB_STATE_CONFIGURED) |
351 | return -ENODEV; | 351 | return -ENODEV; |
352 | 352 | ||
353 | max = le16_to_cpu(ep->desc.wMaxPacketSize); | 353 | max = usb_endpoint_maxp(&ep->desc); |
354 | if (max <= 0) { | 354 | if (max <= 0) { |
355 | dev_dbg(&dev->dev, | 355 | dev_dbg(&dev->dev, |
356 | "bogus endpoint ep%d%s in %s (bad maxpacket %d)\n", | 356 | "bogus endpoint ep%d%s in %s (bad maxpacket %d)\n", |