mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2024-11-10 15:39:38 +00:00
rtl8188eu: Fix Sparse warnings in core/rtw_sta_mgt.c
Sparse reports the following: CHECK /home/finger/rtl8188eu/core/rtw_sta_mgt.c /home/finger/rtl8188eu/core/rtw_sta_mgt.c:32:6: warning: symbol '_rtw_init_stainfo' was not declared. Should it be static? /home/finger/rtl8188eu/core/rtw_sta_mgt.c:166:9: warning: symbol '_rtw_free_sta_xmit_priv_lock' was not declared. Should it be static? /home/finger/rtl8188eu/core/rtw_sta_mgt.c:174:6: warning: symbol 'rtw_mfree_stainfo' was not declared. Should it be static? Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
3ead4034f3
commit
b8f73d9a8f
1 changed files with 2 additions and 20 deletions
|
@ -29,7 +29,7 @@
|
||||||
|
|
||||||
#include <sta_info.h>
|
#include <sta_info.h>
|
||||||
|
|
||||||
void _rtw_init_stainfo(struct sta_info *psta)
|
static void _rtw_init_stainfo(struct sta_info *psta)
|
||||||
{
|
{
|
||||||
memset((u8 *)psta, 0, sizeof (struct sta_info));
|
memset((u8 *)psta, 0, sizeof (struct sta_info));
|
||||||
|
|
||||||
|
@ -163,24 +163,8 @@ inline struct sta_info *rtw_get_stainfo_by_offset(struct sta_priv *stapriv, int
|
||||||
return (struct sta_info *)(stapriv->pstainfo_buf + offset * sizeof(struct sta_info));
|
return (struct sta_info *)(stapriv->pstainfo_buf + offset * sizeof(struct sta_info));
|
||||||
}
|
}
|
||||||
|
|
||||||
void _rtw_free_sta_xmit_priv_lock(struct sta_xmit_priv *psta_xmitpriv)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
static void _rtw_free_sta_recv_priv_lock(struct sta_recv_priv *psta_recvpriv)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void rtw_mfree_stainfo(struct sta_info *psta)
|
|
||||||
{
|
|
||||||
_rtw_free_sta_xmit_priv_lock(&psta->sta_xmitpriv);
|
|
||||||
_rtw_free_sta_recv_priv_lock(&psta->sta_recvpriv);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/* this function is used to free the memory of lock || sema for all stainfos */
|
/* this function is used to free the memory of lock || sema for all stainfos */
|
||||||
void rtw_mfree_all_stainfo(struct sta_priv *pstapriv );
|
static void rtw_mfree_all_stainfo(struct sta_priv *pstapriv )
|
||||||
void rtw_mfree_all_stainfo(struct sta_priv *pstapriv )
|
|
||||||
{
|
{
|
||||||
unsigned long irqL;
|
unsigned long irqL;
|
||||||
struct list_head *plist, *phead;
|
struct list_head *plist, *phead;
|
||||||
|
@ -197,8 +181,6 @@ void rtw_mfree_all_stainfo(struct sta_priv *pstapriv )
|
||||||
{
|
{
|
||||||
psta = LIST_CONTAINOR(plist, struct sta_info ,list);
|
psta = LIST_CONTAINOR(plist, struct sta_info ,list);
|
||||||
plist = get_next(plist);
|
plist = get_next(plist);
|
||||||
|
|
||||||
rtw_mfree_stainfo(psta);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
spin_unlock_bh(&pstapriv->sta_hash_lock);
|
spin_unlock_bh(&pstapriv->sta_hash_lock);
|
||||||
|
|
Loading…
Reference in a new issue