mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-06-23 08:34:20 +00:00
rtlwifi: Remove list-handling macros
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
6d3d853360
commit
209e50ad60
14 changed files with 225 additions and 293 deletions
|
@ -118,14 +118,6 @@ For the following list_xxx operations,
|
|||
caller must guarantee the atomic context.
|
||||
Otherwise, there will be racing condition.
|
||||
*/
|
||||
u32 rtw_is_list_empty(struct list_head *phead)
|
||||
{
|
||||
if (list_empty(phead))
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
/*
|
||||
Caller must check if the list is empty before calling rtw_list_delete
|
||||
*/
|
||||
|
@ -167,19 +159,6 @@ void _rtw_init_queue(struct __queue *pqueue)
|
|||
spin_lock_init(&(pqueue->lock));
|
||||
}
|
||||
|
||||
u32 _rtw_queue_empty(struct __queue *pqueue)
|
||||
{
|
||||
return rtw_is_list_empty(&(pqueue->queue));
|
||||
}
|
||||
|
||||
u32 rtw_end_of_queue_search(struct list_head *head, struct list_head *plist)
|
||||
{
|
||||
if (head == plist)
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
u32 rtw_get_current_time(void)
|
||||
{
|
||||
return jiffies;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue