staging: r8188eu: core: remove condition with no effect
authorSaurav Girepunje <saurav.girepunje@gmail.com>
Sun, 29 Aug 2021 09:01:15 +0000 (14:31 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 13 Sep 2021 06:49:43 +0000 (08:49 +0200)
Remove the condition with no effect (if == else) and group multiple
cases which execute same statement in rtw_mlme_ext.c

Reviewed-by: Pavel Skripkin <paskripkin@gmail.com>
Acked-by: Michael Straube <straube.linux@gmail.com>
Signed-off-by: Saurav Girepunje <saurav.girepunje@gmail.com>
Link: https://lore.kernel.org/r/YStM2wxtkDAnRemt@user
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_mlme_ext.c

index 5a472a4..4178b3c 100644 (file)
@@ -453,17 +453,8 @@ void mgt_dispatcher(struct adapter *padapter, struct recv_frame *precv_frame)
                fallthrough;
        case WIFI_ASSOCREQ:
        case WIFI_REASSOCREQ:
-               _mgt_dispatcher(padapter, ptable, precv_frame);
-               break;
        case WIFI_PROBEREQ:
-               if (check_fwstate(pmlmepriv, WIFI_AP_STATE))
-                       _mgt_dispatcher(padapter, ptable, precv_frame);
-               else
-                       _mgt_dispatcher(padapter, ptable, precv_frame);
-               break;
        case WIFI_BEACON:
-               _mgt_dispatcher(padapter, ptable, precv_frame);
-               break;
        case WIFI_ACTION:
                _mgt_dispatcher(padapter, ptable, precv_frame);
                break;