staging: r8188eu: remove rtw_list_delete wrapper
authorMartin Kaiser <martin@kaiser.cx>
Sat, 15 Jan 2022 16:55:30 +0000 (17:55 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 25 Jan 2022 15:27:23 +0000 (16:27 +0100)
Remove the rtw_list_delete wrapper function. Call list_del_init directly.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20220115165536.231210-6-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_cmd.c
drivers/staging/r8188eu/include/osdep_service.h

index 3d22a8888ea72bb985be4639de6b7efbc81e9850..410b5dacfaa7c7a4ecc16209081c9fbd468f19f2 100644 (file)
@@ -133,7 +133,7 @@ static struct cmd_obj *_rtw_dequeue_cmd(struct __queue *queue)
                obj = NULL;
        } else {
                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);
index c5de424842cc768a8986aa98efc0588431058463..8ca9f86e3c9b3eda099dddde5454c095b2f7b42b 100644 (file)
@@ -54,11 +54,6 @@ static inline struct list_head *get_list_head(struct __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)
 {
        mod_timer(ptimer , (jiffies+(delay_time*HZ/1000)));