Remove all calls to _rtw_spinlock_free()

This routine is empty, thus all calls to it can be removed.

Link: https://lore.kernel.org/r/20210805183717.23007-4-Larry.Finger@lwfinger.net
This commit is contained in:
Larry Finger
2021-08-05 13:37:15 -05:00
committed by Carlos Garcés
parent 34ec238387
commit 51e1f13a91
18 changed files with 2 additions and 138 deletions

View File

@@ -1365,19 +1365,6 @@ void _rtw_spinlock_init(_lock *plock)
}
void _rtw_spinlock_free(_lock *plock)
{
#ifdef PLATFORM_FREEBSD
mtx_destroy(plock);
#endif
#ifdef PLATFORM_WINDOWS
NdisFreeSpinLock(plock);
#endif
}
#ifdef PLATFORM_FREEBSD
extern PADAPTER prtw_lock;
@@ -1484,7 +1471,6 @@ void _rtw_init_queue(_queue *pqueue)
void _rtw_deinit_queue(_queue *pqueue)
{
_rtw_spinlock_free(&(pqueue->lock));
}
u32 _rtw_queue_empty(_queue *pqueue)