mirror of
https://github.com/torvalds/linux.git
synced 2026-06-01 19:13:47 +02:00
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:
parent
e3f6a00506
commit
1875be81b5
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user