usb: dwc3: gadget: move cmd_endtransfer to extra function
authorMichael Grzeschik <m.grzeschik@pengutronix.de>
Sun, 6 Mar 2022 21:12:51 +0000 (22:12 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 15 Mar 2022 17:42:32 +0000 (18:42 +0100)
commite192cc7b52399d1b073f88cd3ba128b74d3a57f1
tree66b158d21fedf569ebe59163b16e865b928fa83a
parent26d27a1080a7d0e8f0c1a56dc50aae336f9525d1
usb: dwc3: gadget: move cmd_endtransfer to extra function

This patch adds the extra function __dwc3_stop_active_transfer to
consolidate the same codepath.

Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Link: https://lore.kernel.org/r/20220306211251.2281335-3-m.grzeschik@pengutronix.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/gadget.c