From: Seung-Woo Kim Date: Fri, 8 Nov 2024 00:23:35 +0000 (+0900) Subject: net: wireless: rtl8723ds: Remove null check from rtw_mfree_stainfo() X-Git-Tag: accepted/tizen/unified/x/20241108.111140~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F05%2F320105%2F1;p=platform%2Fkernel%2Flinux-thead.git net: wireless: rtl8723ds: Remove null check from rtw_mfree_stainfo() Address of declared variable is always not null. Remove unnecessary null check for the case in rtw_mfree_stainfo(). Change-Id: I561148225a42a802470ef3d39115c0120954c4ff Signed-off-by: Seung-Woo Kim --- diff --git a/drivers/net/wireless/rtl8723ds/core/rtw_sta_mgt.c b/drivers/net/wireless/rtl8723ds/core/rtw_sta_mgt.c index c2e27b9f0ea5..4f5b689f6fed 100644 --- a/drivers/net/wireless/rtl8723ds/core/rtw_sta_mgt.c +++ b/drivers/net/wireless/rtl8723ds/core/rtw_sta_mgt.c @@ -388,8 +388,7 @@ 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);