staging: r8188eu: remove the _set_workitem wrapper
authorMartin Kaiser <martin@kaiser.cx>
Thu, 25 Nov 2021 16:25:10 +0000 (17:25 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Nov 2021 16:47:18 +0000 (17:47 +0100)
Remove the _set_workitem wrapper and call schedule_work directly.

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

index 0e34536..d48ed98 100644 (file)
@@ -12,7 +12,7 @@ void BlinkTimerCallback(struct timer_list *t)
        if ((padapter->bSurpriseRemoved) || (padapter->bDriverStopped))
                return;
 
-       _set_workitem(&pLed->BlinkWorkItem);
+       schedule_work(&pLed->BlinkWorkItem);
 }
 
 void BlinkWorkItemCallback(struct work_struct *work)
index f6f5e45..7664404 100644 (file)
@@ -79,11 +79,6 @@ static inline void _init_workitem(struct work_struct *pwork, void *pfunc, void *
        INIT_WORK(pwork, pfunc);
 }
 
-static inline void _set_workitem(struct work_struct *pwork)
-{
-       schedule_work(pwork);
-}
-
 static inline void _cancel_workitem_sync(struct work_struct *pwork)
 {
        cancel_work_sync(pwork);