staging: r8188eu: remove unnecessary jump
authorMartin Kaiser <martin@kaiser.cx>
Sun, 3 Apr 2022 16:32:05 +0000 (18:32 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 4 Apr 2022 14:30:45 +0000 (16:30 +0200)
Don't jump to _continue, we go there anyway.

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

index 2c07321..ca415d1 100644 (file)
@@ -503,15 +503,10 @@ unsigned int OnProbeReq(struct adapter *padapter, struct recv_frame *precv_frame
 
                                        return _SUCCESS;
                                }
-
-                               if (rtw_p2p_chk_role(pwdinfo, P2P_ROLE_GO))
-                                       goto _continue;
                        }
                }
        }
 
-_continue:
-
        if (check_fwstate(pmlmepriv, WIFI_STATION_STATE))
                return _SUCCESS;