staging: r8188eu: replace switch with if
authorMartin Kaiser <martin@kaiser.cx>
Mon, 9 Jan 2023 21:28:45 +0000 (22:28 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 17 Jan 2023 18:35:24 +0000 (19:35 +0100)
commit1511463d33b5f3022c5875a25156d666bf8920fe
tree1e2db361555f12b7342bee8848129ba8b6dcd928
parente7b970cc375baf524744da2f0f59c85d8a4e88a1
staging: r8188eu: replace switch with if

The switch statement in usb_write_port_complete has only one single case.
Replace it with an if statement.

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