Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f2355b69 authored by James A Shackleford's avatar James A Shackleford Committed by Greg Kroah-Hartman
Browse files

staging: rtl8712: remove wrapper function _set_workitem()



The inline function _set_workitem() simply wraps schedule_work().  Removed.

Signed-off-by: default avatarJames A Shackleford <shack@linux.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 9f952489
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -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
+1 −1
Original line number Diff line number Diff line
@@ -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:
+2 −2
Original line number Diff line number Diff line
@@ -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)