usb: dwc3: gadget: Refactor ep command completion
authorThinh Nguyen <Thinh.Nguyen@synopsys.com>
Thu, 30 Jul 2020 23:29:03 +0000 (16:29 -0700)
committerFelipe Balbi <balbi@kernel.org>
Fri, 2 Oct 2020 06:57:43 +0000 (09:57 +0300)
commit8266b08ed90cd9091dd8e3f37a740a409454e454
tree9a80c0ab7dc9c52d398b3e2695ad22cdf429fe82
parentde56298f78e449e9490a8621d3bd80a04ad40e6d
usb: dwc3: gadget: Refactor ep command completion

Refactor END_TRANSFER command completion handling and move it outside of
the switch statement to its own function. This makes it cleaner and
consistent with other event handler functions. No functional change
here.

Signed-off-by: Thinh Nguyen <thinhn@synopsys.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
drivers/usb/dwc3/gadget.c