rtlwifi: Remove list-handling macros

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
Larry Finger 2014-12-13 15:06:22 -06:00
parent 6d3d853360
commit 209e50ad60
14 changed files with 225 additions and 293 deletions

View file

@ -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);
}