usb: host: Initiate urb ep with udev ep0
authorKhalid Masum <khalid.masum.92@gmail.com>
Wed, 24 Aug 2022 20:31:07 +0000 (02:31 +0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 31 Aug 2022 07:07:53 +0000 (09:07 +0200)
commit9013d8fc0ad91dc369f5b8ea708b9b068aa5d434
tree8bc8669e2adeaf3f807703658c7bb2245d8b210c
parentd27c66adb4c0b16c817f71ba96e90f322e7419af
usb: host: Initiate urb ep with udev ep0

Currently we look up for endpoint in a table and initate urb endpoint
with it. This is unnecessary because the lookup will always result in
endpoint 0.

Suggested-by: Alan Stern <stern@rowland.harvard.edu>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Khalid Masum <khalid.masum.92@gmail.com>
Link: https://lore.kernel.org/r/20220824203107.14908-1-khalid.masum.92@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/hcd.c