diff options
author | Luca Ceresoli <luca@lucaceresoli.net> | 2015-06-12 00:20:48 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-06-12 17:22:06 -0700 |
commit | a26c9eedcdf81c4ddeb4d055c45039d4175969cc (patch) | |
tree | bb7ec0ecf48559f0f59390f13a2d6a1b2ff79a19 /drivers/staging/rtl8188eu | |
parent | 863eaa79bac1c0d6df7404e87432d823193e2555 (diff) |
staging: rtl8188eu: issue_probersp(): remove unused variable and dead code
is_valid_p2p_probereq is initialized to false and never modified. Code
depending on it is dead code. Remove all of it.
Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
Cc: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8188eu')
-rw-r--r-- | drivers/staging/rtl8188eu/core/rtw_mlme_ext.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/staging/rtl8188eu/core/rtw_mlme_ext.c b/drivers/staging/rtl8188eu/core/rtw_mlme_ext.c index 109c0985fe16..a68bc3cc3981 100644 --- a/drivers/staging/rtl8188eu/core/rtw_mlme_ext.c +++ b/drivers/staging/rtl8188eu/core/rtw_mlme_ext.c @@ -2594,7 +2594,6 @@ static unsigned int OnProbeReq(struct adapter *padapter, struct wlan_bssid_ex *cur = &(pmlmeinfo->network); u8 *pframe = precv_frame->rx_data; uint len = precv_frame->len; - u8 is_valid_p2p_probereq = false; if (check_fwstate(pmlmepriv, WIFI_STATION_STATE)) return _SUCCESS; @@ -2608,15 +2607,10 @@ static unsigned int OnProbeReq(struct adapter *padapter, /* check (wildcard) SSID */ if (p != NULL) { - if (is_valid_p2p_probereq) - goto _issue_probersp; - if ((ielen != 0 && memcmp((void *)(p+2), (void *)cur->Ssid.Ssid, cur->Ssid.SsidLength)) || (ielen == 0 && pmlmeinfo->hidden_ssid_mode)) return _SUCCESS; -_issue_probersp: - if (check_fwstate(pmlmepriv, _FW_LINKED) && pmlmepriv->cur_network.join_res) issue_probersp(padapter, get_sa(pframe)); |