staging: rtl8188eu: remove unnecessary comments in rtw_mlme_ext.c
Remove comments from 'endif's where the corresponding 'if' is just a few lines above to improve readability. Signed-off-by: Michael Straube <straube.linux@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
7acaed81ab
commit
011844addf
|
@ -333,7 +333,7 @@ static void issue_beacon(struct adapter *padapter, int timeout_ms)
|
||||||
}
|
}
|
||||||
#if defined(CONFIG_88EU_AP_MODE)
|
#if defined(CONFIG_88EU_AP_MODE)
|
||||||
spin_lock_bh(&pmlmepriv->bcn_update_lock);
|
spin_lock_bh(&pmlmepriv->bcn_update_lock);
|
||||||
#endif /* if defined (CONFIG_88EU_AP_MODE) */
|
#endif
|
||||||
|
|
||||||
/* update attribute */
|
/* update attribute */
|
||||||
pattrib = &pmgntframe->attrib;
|
pattrib = &pmgntframe->attrib;
|
||||||
|
@ -436,7 +436,7 @@ _issue_bcn:
|
||||||
pmlmepriv->update_bcn = false;
|
pmlmepriv->update_bcn = false;
|
||||||
|
|
||||||
spin_unlock_bh(&pmlmepriv->bcn_update_lock);
|
spin_unlock_bh(&pmlmepriv->bcn_update_lock);
|
||||||
#endif /* if defined (CONFIG_88EU_AP_MODE) */
|
#endif
|
||||||
|
|
||||||
if ((pattrib->pktlen + TXDESC_SIZE) > 512) {
|
if ((pattrib->pktlen + TXDESC_SIZE) > 512) {
|
||||||
DBG_88E("beacon frame too large\n");
|
DBG_88E("beacon frame too large\n");
|
||||||
|
@ -465,7 +465,7 @@ static void issue_probersp(struct adapter *padapter, unsigned char *da)
|
||||||
u8 *pwps_ie;
|
u8 *pwps_ie;
|
||||||
uint wps_ielen;
|
uint wps_ielen;
|
||||||
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
|
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
|
||||||
#endif /* if defined (CONFIG_88EU_AP_MODE) */
|
#endif
|
||||||
struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv);
|
struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv);
|
||||||
struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
|
struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
|
||||||
struct wlan_bssid_ex *cur_network = &(pmlmeinfo->network);
|
struct wlan_bssid_ex *cur_network = &(pmlmeinfo->network);
|
||||||
|
@ -4087,7 +4087,7 @@ void mgt_dispatcher(struct adapter *padapter, struct recv_frame *precv_frame)
|
||||||
struct mlme_handler *ptable;
|
struct mlme_handler *ptable;
|
||||||
#ifdef CONFIG_88EU_AP_MODE
|
#ifdef CONFIG_88EU_AP_MODE
|
||||||
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
|
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
|
||||||
#endif /* CONFIG_88EU_AP_MODE */
|
#endif
|
||||||
u8 bc_addr[ETH_ALEN] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
|
u8 bc_addr[ETH_ALEN] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
|
||||||
u8 *pframe = precv_frame->pkt->data;
|
u8 *pframe = precv_frame->pkt->data;
|
||||||
struct sta_info *psta = rtw_get_stainfo(&padapter->stapriv, GetAddr2Ptr(pframe));
|
struct sta_info *psta = rtw_get_stainfo(&padapter->stapriv, GetAddr2Ptr(pframe));
|
||||||
|
|
Loading…
Reference in a new issue