Commit 7dcfee65 authored by Matthias Wirth's avatar Matthias Wirth Committed by Greg Kroah-Hartman

rtl8188eu: remove unused code

These two macros needed reformatting but as they are not used anywhere we
just removed them.
Signed-off-by: default avatarMatthias Wirth <matthias.wirth@gmail.com>
Signed-off-by: default avatarLukas Senger <lukas@fridolin.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 282956c6
...@@ -170,23 +170,6 @@ static inline void _cancel_workitem_sync(struct work_struct *pwork) ...@@ -170,23 +170,6 @@ static inline void _cancel_workitem_sync(struct work_struct *pwork)
{ {
cancel_work_sync(pwork); cancel_work_sync(pwork);
} }
/* */
/* Global Mutex: can only be used at PASSIVE level. */
/* */
#define ACQUIRE_GLOBAL_MUTEX(_MutexCounter) \
{ \
while (atomic_inc_return((atomic_t *)&(_MutexCounter)) != 1)\
{ \
atomic_dec((atomic_t *)&(_MutexCounter)); \
msleep(10); \
} \
}
#define RELEASE_GLOBAL_MUTEX(_MutexCounter) \
{ \
atomic_dec((atomic_t *)&(_MutexCounter)); \
}
static inline int rtw_netif_queue_stopped(struct net_device *pnetdev) static inline int rtw_netif_queue_stopped(struct net_device *pnetdev)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment