usb: dwc3: gadget: ep_queue simplify isoc start condition
authorMichael Grzeschik <m.grzeschik@pengutronix.de>
Sun, 6 Mar 2022 21:12:50 +0000 (22:12 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 15 Mar 2022 17:42:32 +0000 (18:42 +0100)
commit26d27a1080a7d0e8f0c1a56dc50aae336f9525d1
treeaed0c3f0516975c56447f80a3f62d5feb05a23b4
parentcee03ca3cb44c867b45f9d32601c1d532f66fe7a
usb: dwc3: gadget: ep_queue simplify isoc start condition

To improve reading the code this patch moves the cases to start_isoc or
return the function under one common condition check.

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