rtl8188eu: Fix Sparse warnings in core/rtw_mlme.c

Sparse reports the following:

  CHECK   /home/finger/rtl8188eu/core/rtw_mlme.c
/home/finger/rtl8188eu/core/rtw_mlme.c💯6: warning: symbol 'rtw_mfree_mlme_priv_lock' was not declared. Should it be static?
/home/finger/rtl8188eu/core/rtw_mlme.c:481:9: warning: symbol 'rtw_enqueue_network' was not declared. Should it be static?
/home/finger/rtl8188eu/core/rtw_mlme.c:510:6: warning: symbol 'rtw_free_network' was not declared. Should it be static?

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
Larry Finger 2015-08-14 20:13:44 -05:00
parent 124237abfb
commit efddeb40e2
2 changed files with 4 additions and 24 deletions

View file

@ -97,10 +97,6 @@ exit:
return res;
}
void rtw_mfree_mlme_priv_lock (struct mlme_priv *pmlmepriv)
{
}
static void rtw_free_mlme_ie_data(u8 **ppie, u32 *plen)
{
if(*ppie) {
@ -139,18 +135,12 @@ void rtw_free_mlme_priv_ie_data(struct mlme_priv *pmlmepriv)
void _rtw_free_mlme_priv (struct mlme_priv *pmlmepriv)
{
;
rtw_free_mlme_priv_ie_data(pmlmepriv);
if(pmlmepriv){
rtw_mfree_mlme_priv_lock (pmlmepriv);
if (pmlmepriv->free_bss_buf) {
if (pmlmepriv) {
if (pmlmepriv->free_bss_buf)
rtw_vmfree(pmlmepriv->free_bss_buf, MAX_BSS_CNT * sizeof(struct wlan_network));
}
}
;
}
sint _rtw_enqueue_network(struct __queue *queue, struct wlan_network *pnetwork)
@ -472,22 +462,10 @@ int rtw_init_mlme_priv (struct adapter *padapter)/* struct mlme_priv *pmlmepriv)
void rtw_free_mlme_priv (struct mlme_priv *pmlmepriv)
{
;
RT_TRACE(_module_rtl871x_mlme_c_,_drv_err_,("rtw_free_mlme_priv\n"));
_rtw_free_mlme_priv (pmlmepriv);
;
}
int rtw_enqueue_network(struct __queue *queue, struct wlan_network *pnetwork)
{
int res;
;
res = _rtw_enqueue_network(queue, pnetwork);
;
return res;
}
static struct wlan_network *rtw_dequeue_network(struct __queue *queue)
{
struct wlan_network *pnetwork;

View file

@ -665,6 +665,8 @@ extern int _rtw_init_mlme_priv(struct adapter *padapter);
void rtw_free_mlme_priv_ie_data(struct mlme_priv *pmlmepriv);
void rtw_free_network(struct mlme_priv *pmlmepriv,
struct wlan_network *pnetwork, u8 is_freeall);
extern void _rtw_free_mlme_priv(struct mlme_priv *pmlmepriv);
extern int _rtw_enqueue_network(struct __queue *queue, struct wlan_network *pnetwork);