staging: r8188eu: remove the _set_workitem wrapper

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>
This commit is contained in:
Martin Kaiser 2021-11-25 17:25:10 +01:00 committed by Greg Kroah-Hartman
parent e3f6a00506
commit 1875be81b5
2 changed files with 1 additions and 6 deletions

View 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)

View 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);