Commit 9224cda4 authored by Martin Kaiser's avatar Martin Kaiser Committed by Greg Kroah-Hartman

staging: r8188eu: remove rtw_list_delete wrapper

Remove the rtw_list_delete wrapper function. Call list_del_init directly.
Signed-off-by: default avatarMartin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20220115165536.231210-6-martin@kaiser.cxSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 4b583386
...@@ -133,7 +133,7 @@ static struct cmd_obj *_rtw_dequeue_cmd(struct __queue *queue) ...@@ -133,7 +133,7 @@ static struct cmd_obj *_rtw_dequeue_cmd(struct __queue *queue)
obj = NULL; obj = NULL;
} else { } else {
obj = container_of((&queue->queue)->next, struct cmd_obj, list); obj = container_of((&queue->queue)->next, struct cmd_obj, list);
rtw_list_delete(&obj->list); list_del_init(&obj->list);
} }
spin_unlock_irqrestore(&queue->lock, flags); spin_unlock_irqrestore(&queue->lock, flags);
......
...@@ -54,11 +54,6 @@ static inline struct list_head *get_list_head(struct __queue *queue) ...@@ -54,11 +54,6 @@ static inline struct list_head *get_list_head(struct __queue *queue)
return (&(queue->queue)); return (&(queue->queue));
} }
static inline void rtw_list_delete(struct list_head *plist)
{
list_del_init(plist);
}
static inline void _set_timer(struct timer_list *ptimer,u32 delay_time) static inline void _set_timer(struct timer_list *ptimer,u32 delay_time)
{ {
mod_timer(ptimer , (jiffies+(delay_time*HZ/1000))); mod_timer(ptimer , (jiffies+(delay_time*HZ/1000)));
......
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