staging: r8188eu: refactor status handling in usb_write_port_complete
authorMartin Kaiser <martin@kaiser.cx>
Tue, 10 Jan 2023 20:56:23 +0000 (21:56 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 17 Jan 2023 18:36:14 +0000 (19:36 +0100)
commit47bdd807aee4c7e60ecf4e6bf5d324e0c5c57604
treea9f6b4969a3db90fef529e349c0c953592c1c01e
parent001c773caf95a4e1c72a13d3f00b00f3638277ca
staging: r8188eu: refactor status handling in usb_write_port_complete

Refactor the satus handling in usb_write_port_complete. Make it clearer
what happens for each status and avoid all the goto statements.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> # Edimax N150
Link: https://lore.kernel.org/r/20230110205626.183516-2-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/os_dep/usb_ops_linux.c