staging: r8188eu: replace OnAction_tbl with switch-case
authorMartin Kaiser <martin@kaiser.cx>
Mon, 2 May 2022 20:06:49 +0000 (22:06 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 May 2022 21:22:38 +0000 (23:22 +0200)
commit11d2e7de0d8a4b706872f6e79679c32dcb3c0393
tree5696e9231bff4e29b5fffc51bb88aad797def45e
parent42e00fbbbab049591682d7de3071f713215bd799
staging: r8188eu: replace OnAction_tbl with switch-case

OnAction_tbl has only three entries. It's simpler to use a switch
statement instead of iterating over the table.

We can then remove the table itself and struct action_handler, which was
used only for the table entries.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20220502200652.143665-7-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_mlme_ext.c
drivers/staging/r8188eu/include/rtw_mlme_ext.h