staging: r8188eu: replace switch-case with if
authorMartin Kaiser <martin@kaiser.cx>
Mon, 30 Jan 2023 19:53:03 +0000 (20:53 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 31 Jan 2023 10:16:57 +0000 (11:16 +0100)
commitedb3e231e47de091a169b4cd70852f29ba705c82
tree4e559678c1bc49443191c4f062e35136dc8343fb
parentb6d2e4e0f3cc3f8d182e35c359cae9032b337435
staging: r8188eu: replace switch-case with if

Replace a switch-case in rtw_write_port with an if statement and make the
code a bit shorter.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20230130195303.138941-10-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/os_dep/usb_ops_linux.c