From f1aa80a838be90d3815819491f41ebfb8e81af04 Mon Sep 17 00:00:00 2001 From: Larry Finger Date: Thu, 5 Aug 2021 13:37:16 -0500 Subject: [PATCH] Remove more empty routines After removing some empty routines in os_dep/osdep_service.c, new routines become empty. These include rtw_mfree_stainfo(), _rtw_free_sta_xmit_priv_lock(), and rtw_mfree_recv_priv_lock. Link: https://lore.kernel.org/r/20210805183717.23007-5-Larry.Finger@lwfinger.net --- core/rtw_recv.c | 2 -- core/rtw_sta_mgt.c | 10 ---------- 2 files changed, 12 deletions(-) diff --git a/core/rtw_recv.c b/core/rtw_recv.c index 1b8577d..2355adf 100644 --- a/core/rtw_recv.c +++ b/core/rtw_recv.c @@ -180,8 +180,6 @@ void _rtw_free_recv_priv(struct recv_priv *precvpriv) rtw_free_uc_swdec_pending_queue(padapter); - rtw_mfree_recv_priv_lock(precvpriv); - rtw_os_recv_resource_free(precvpriv); vfree(precvpriv->pallocated_frame_buf); diff --git a/core/rtw_sta_mgt.c b/core/rtw_sta_mgt.c index 96caae5..b166d9b 100644 --- a/core/rtw_sta_mgt.c +++ b/core/rtw_sta_mgt.c @@ -350,14 +350,6 @@ inline struct sta_info *rtw_get_stainfo_by_offset(struct sta_priv *stapriv, int return (struct sta_info *)(stapriv->pstainfo_buf + offset * sizeof(struct sta_info)); } -void rtw_mfree_stainfo(struct sta_info *psta); -void rtw_mfree_stainfo(struct sta_info *psta) -{ - - _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); @@ -376,8 +368,6 @@ void rtw_mfree_all_stainfo(struct sta_priv *pstapriv) while ((rtw_end_of_queue_search(phead, plist)) == _FALSE) { psta = LIST_CONTAINOR(plist, struct sta_info , list); plist = get_next(plist); - - rtw_mfree_stainfo(psta); } _exit_critical_bh(&pstapriv->sta_hash_lock, &irqL);