浏览代码

staging: r8188eu: Remove wrapper routine _set_workitem()

This is simply a wrapper around schedule_work().

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Larry Finger 11 年之前
父节点
当前提交
f87028f42f
共有 2 个文件被更改,包括 1 次插入6 次删除
  1. 1 1
      drivers/staging/rtl8188eu/core/rtw_led.c
  2. 0 5
      drivers/staging/rtl8188eu/include/osdep_service.h

+ 1 - 1
drivers/staging/rtl8188eu/core/rtw_led.c

@@ -34,7 +34,7 @@ void BlinkTimerCallback(void *data)
 	if ((padapter->bSurpriseRemoved) || (padapter->bDriverStopped))
 	if ((padapter->bSurpriseRemoved) || (padapter->bDriverStopped))
 		return;
 		return;
 
 
-	_set_workitem(&(pLed->BlinkWorkItem));
+	schedule_work(&(pLed->BlinkWorkItem));
 }
 }
 
 
 /*  */
 /*  */

+ 0 - 5
drivers/staging/rtl8188eu/include/osdep_service.h

@@ -106,11 +106,6 @@ static inline void _cancel_timer(struct timer_list *ptimer, u8 *bcancelled)
 #define RTW_DECLARE_TIMER_HDL(name) \
 #define RTW_DECLARE_TIMER_HDL(name) \
 	void RTW_TIMER_HDL_NAME(name)(RTW_TIMER_HDL_ARGS)
 	void RTW_TIMER_HDL_NAME(name)(RTW_TIMER_HDL_ARGS)
 
 
-static inline void _set_workitem(struct work_struct *pwork)
-{
-	schedule_work(pwork);
-}
-
 static inline void _cancel_workitem_sync(struct work_struct *pwork)
 static inline void _cancel_workitem_sync(struct work_struct *pwork)
 {
 {
 	cancel_work_sync(pwork);
 	cancel_work_sync(pwork);