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
|
@ -159,10 +159,10 @@ struct cmd_obj *_rtw_dequeue_cmd(struct __queue *queue)
|
|||
unsigned long flags;
|
||||
|
||||
spin_lock_irqsave(&queue->lock, flags);
|
||||
if (rtw_is_list_empty(&(queue->queue))) {
|
||||
if (list_empty(&(queue->queue))) {
|
||||
obj = NULL;
|
||||
} else {
|
||||
obj = container_of(get_next(&(queue->queue)), struct cmd_obj, list);
|
||||
obj = container_of((&(queue->queue))->next, struct cmd_obj, list);
|
||||
rtw_list_delete(&obj->list);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue