staging: rtl8712: remove wrapper function _set_workitem()
authorJames A Shackleford <shack@linux.com>
Wed, 9 Jul 2014 19:10:46 +0000 (15:10 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Jul 2014 19:30:46 +0000 (12:30 -0700)
The inline function _set_workitem() simply wraps schedule_work().  Removed.

Signed-off-by: James A Shackleford <shack@linux.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8712/osdep_service.h
drivers/staging/rtl8712/rtl8712_led.c
drivers/staging/rtl8712/rtl871x_pwrctrl.c

index 2cf9a0200141de874881d04d134d72147efd3fe9..43795e77940e0888e3f9b61813a9f1482f25f567 100644 (file)
@@ -81,11 +81,6 @@ static inline void _cancel_timer(struct timer_list *ptimer, u8 *bcancelled)
        *bcancelled = true; /*true ==1; false==0*/
 }
 
-static inline void _set_workitem(_workitem *pwork)
-{
-       schedule_work(pwork);
-}
-
 #ifndef BIT
        #define BIT(x)  (1 << (x))
 #endif
index a84ae2f274971ee4a617083b0d4330d75fd342b8..56e8add30a2061545106f68e71aadffa420f38dd 100644 (file)
@@ -827,7 +827,7 @@ static void BlinkTimerCallback(unsigned long data)
        if ((pLed->padapter->bSurpriseRemoved == true) ||
            (pLed->padapter->bDriverStopped == true))
                return;
-       _set_workitem(&(pLed->BlinkWorkItem));
+       schedule_work(&pLed->BlinkWorkItem);
 }
 
 /*     Description:
index 6cf051fcb382e85c180d27d3fb893a1ab3514262..89ce527940fee418a877096b80686c28427d9942 100644 (file)
@@ -83,7 +83,7 @@ void r8712_set_ps_mode(struct _adapter *padapter, uint ps_mode, uint smart_ps)
                        pwrpriv->bSleep = false;
                pwrpriv->pwr_mode = ps_mode;
                pwrpriv->smart_ps = smart_ps;
-               _set_workitem(&(pwrpriv->SetPSModeWorkItem));
+               schedule_work(&pwrpriv->SetPSModeWorkItem);
        }
 }
 
@@ -133,7 +133,7 @@ static void _rpwm_check_handler (struct _adapter *padapter)
            padapter->bSurpriseRemoved == true)
                return;
        if (pwrpriv->cpwm != pwrpriv->rpwm)
-               _set_workitem(&(pwrpriv->rpwm_workitem));
+               schedule_work(&pwrpriv->rpwm_workitem);
 }
 
 static void SetPSModeWorkItemCallback(struct work_struct *work)