usb: host: use usb_endpoint_maxp instead of usb_maxpacket
authorYan Zhu <zhuyan34@huawei.com>
Thu, 18 Apr 2019 15:25:21 +0000 (23:25 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 19 Apr 2019 12:23:34 +0000 (14:23 +0200)
commit9bcb762ce02db5cc99e6705f0fcfab6b097a9bc8
tree8f9e1ece799ba0ed678134694c67f73bedd54cef
parent381419fa720060ba48b7bbc483be787d5b1dca6f
usb: host: use usb_endpoint_maxp instead of usb_maxpacket

fhci_queue_urb() shouldn't use urb->pipe to compute the maxpacket
size anyway.It should use usb_endpoint_maxp(&urb->ep->desc).

Signed-off-by: Yan Zhu <zhuyan34@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/fhci-sched.c