Commit a024c9df authored by Nishka Dasgupta's avatar Nishka Dasgupta Committed by Greg Kroah-Hartman

staging: rtl8712: _r8712_free_sta_priv(): Change return type

Change return type of function _r8712_free_sta_priv from u32 to void as
it always returns _SUCCESS and this return value is never used.
Signed-off-by: default avatarNishka Dasgupta <nishkadg.linux@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 7721483c
...@@ -77,14 +77,13 @@ static void mfree_all_stainfo(struct sta_priv *pstapriv) ...@@ -77,14 +77,13 @@ static void mfree_all_stainfo(struct sta_priv *pstapriv)
spin_unlock_irqrestore(&pstapriv->sta_hash_lock, irqL); spin_unlock_irqrestore(&pstapriv->sta_hash_lock, irqL);
} }
u32 _r8712_free_sta_priv(struct sta_priv *pstapriv) void _r8712_free_sta_priv(struct sta_priv *pstapriv)
{ {
if (pstapriv) { if (pstapriv) {
/* be done before free sta_hash_lock */ /* be done before free sta_hash_lock */
mfree_all_stainfo(pstapriv); mfree_all_stainfo(pstapriv);
kfree(pstapriv->pallocated_stainfo_buf); kfree(pstapriv->pallocated_stainfo_buf);
} }
return _SUCCESS;
} }
struct sta_info *r8712_alloc_stainfo(struct sta_priv *pstapriv, u8 *hwaddr) struct sta_info *r8712_alloc_stainfo(struct sta_priv *pstapriv, u8 *hwaddr)
......
...@@ -120,7 +120,7 @@ static inline u32 wifi_mac_hash(u8 *mac) ...@@ -120,7 +120,7 @@ static inline u32 wifi_mac_hash(u8 *mac)
} }
u32 _r8712_init_sta_priv(struct sta_priv *pstapriv); u32 _r8712_init_sta_priv(struct sta_priv *pstapriv);
u32 _r8712_free_sta_priv(struct sta_priv *pstapriv); void _r8712_free_sta_priv(struct sta_priv *pstapriv);
struct sta_info *r8712_alloc_stainfo(struct sta_priv *pstapriv, struct sta_info *r8712_alloc_stainfo(struct sta_priv *pstapriv,
u8 *hwaddr); u8 *hwaddr);
void r8712_free_stainfo(struct _adapter *padapter, struct sta_info *psta); void r8712_free_stainfo(struct _adapter *padapter, struct sta_info *psta);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment