staging: r8188eu: replace switch-case with if
authorMartin Kaiser <martin@kaiser.cx>
Sun, 30 Oct 2022 17:33:20 +0000 (18:33 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 31 Oct 2022 08:09:04 +0000 (09:09 +0100)
commite246bf42ef82ac25d8a7ad45ddd07fbf161f7e7f
tree93bbf5261c6ad6c1fc5e834457b8110f14ba29da
parentb31b29788f103c2720898af2d499d8b53c1eb980
staging: r8188eu: replace switch-case with if

OnAction_p2p has a switch-case statement where only a single case is
handled. Use if instead, this makes the code shorter and easier to read.

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