From a116233ca69851b127cfe2388f091e4da0b4543a Mon Sep 17 00:00:00 2001 From: kimocoder Date: Mon, 6 Jun 2022 03:11:24 +0200 Subject: [PATCH] Fix compile warning in rtw_sta_mgt.c --- core/rtw_sta_mgt.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/core/rtw_sta_mgt.c b/core/rtw_sta_mgt.c index f8c390d..ddcd1f7 100644 --- a/core/rtw_sta_mgt.c +++ b/core/rtw_sta_mgt.c @@ -365,21 +365,17 @@ static void _rtw_free_sta_recv_priv_lock(struct sta_recv_priv *psta_recvpriv) } -void rtw_mfree_stainfo(struct sta_info *psta); void rtw_mfree_stainfo(struct sta_info *psta) { - if (&psta->lock != NULL) - _rtw_spinlock_free(&psta->lock); + _rtw_spinlock_free(&psta->lock); _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 */ -void rtw_mfree_all_stainfo(struct sta_priv *pstapriv); void rtw_mfree_all_stainfo(struct sta_priv *pstapriv) { _irqL irqL;