Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Nishka Dasgupta <nishkadg.linux@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Nishka Dasgupta and committed by
Greg Kroah-Hartman
a024c9df 7721483c

+2 -3
+1 -2
drivers/staging/rtl8712/rtl871x_sta_mgt.c
··· 77 77 spin_unlock_irqrestore(&pstapriv->sta_hash_lock, irqL); 78 78 } 79 79 80 - u32 _r8712_free_sta_priv(struct sta_priv *pstapriv) 80 + void _r8712_free_sta_priv(struct sta_priv *pstapriv) 81 81 { 82 82 if (pstapriv) { 83 83 /* be done before free sta_hash_lock */ 84 84 mfree_all_stainfo(pstapriv); 85 85 kfree(pstapriv->pallocated_stainfo_buf); 86 86 } 87 - return _SUCCESS; 88 87 } 89 88 90 89 struct sta_info *r8712_alloc_stainfo(struct sta_priv *pstapriv, u8 *hwaddr)
+1 -1
drivers/staging/rtl8712/sta_info.h
··· 120 120 } 121 121 122 122 u32 _r8712_init_sta_priv(struct sta_priv *pstapriv); 123 - u32 _r8712_free_sta_priv(struct sta_priv *pstapriv); 123 + void _r8712_free_sta_priv(struct sta_priv *pstapriv); 124 124 struct sta_info *r8712_alloc_stainfo(struct sta_priv *pstapriv, 125 125 u8 *hwaddr); 126 126 void r8712_free_stainfo(struct _adapter *padapter, struct sta_info *psta);