From 04166686d7cd66e694bdb414a90860de958fd1ae Mon Sep 17 00:00:00 2001 From: Rin Cat Date: Sun, 2 Aug 2020 06:39:55 -0400 Subject: [PATCH] Fix: comparison of address is always true --- core/rtw_sta_mgt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/rtw_sta_mgt.c b/core/rtw_sta_mgt.c index ce7c195..77a335e 100644 --- a/core/rtw_sta_mgt.c +++ b/core/rtw_sta_mgt.c @@ -381,7 +381,7 @@ void rtw_mfree_stainfo(struct sta_info *psta); void rtw_mfree_stainfo(struct sta_info *psta) { - if (&psta->lock != NULL) + if (&(psta->lock) != NULL) _rtw_spinlock_free(&psta->lock); _rtw_free_sta_xmit_priv_lock(&psta->sta_xmitpriv);