]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
usb: dwc3: gadget: init req->{direction,epnum} from alloc_request()
authorFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 7 May 2018 12:19:31 +0000 (15:19 +0300)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 21 May 2018 07:01:01 +0000 (10:01 +0300)
commit31a2f5a7e13633712a97721458f6c5980c2d386e
treef3cbd58bebfafb9a4816eef0f37108a98b3e997e
parentd7ca7e1896b27eaca936ff8ff3abdd2492b55a34
usb: dwc3: gadget: init req->{direction,epnum} from alloc_request()

We dont' need to touch req->direction or req->epnum from
ep_queue(). It's enough that we initialize both fields from
alloc_request() and just keep them for the entire lifetime of the
request.

No functional changes.

Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc3/gadget.c