mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-03-20 22:15:59 +00:00
net/atm/mpc: Avoid open-coded assignment of timer callback function
Instead of a single function assignment, just fold this into DEFINE_TIMER(). Cc: "David S. Miller" <davem@davemloft.net> Signed-off-by: Kees Cook <keescook@chromium.org>
This commit is contained in:
parent
2ea5b4def9
commit
1e9aa74ecd
1 changed files with 1 additions and 2 deletions
|
@ -121,7 +121,7 @@ static struct notifier_block mpoa_notifier = {
|
||||||
|
|
||||||
struct mpoa_client *mpcs = NULL; /* FIXME */
|
struct mpoa_client *mpcs = NULL; /* FIXME */
|
||||||
static struct atm_mpoa_qos *qos_head = NULL;
|
static struct atm_mpoa_qos *qos_head = NULL;
|
||||||
static DEFINE_TIMER(mpc_timer, NULL);
|
static DEFINE_TIMER(mpc_timer, mpc_cache_check);
|
||||||
|
|
||||||
|
|
||||||
static struct mpoa_client *find_mpc_by_itfnum(int itf)
|
static struct mpoa_client *find_mpc_by_itfnum(int itf)
|
||||||
|
@ -1413,7 +1413,6 @@ static void mpc_timer_refresh(void)
|
||||||
{
|
{
|
||||||
mpc_timer.expires = jiffies + (MPC_P2 * HZ);
|
mpc_timer.expires = jiffies + (MPC_P2 * HZ);
|
||||||
checking_time = mpc_timer.expires;
|
checking_time = mpc_timer.expires;
|
||||||
mpc_timer.function = (TIMER_FUNC_TYPE)mpc_cache_check;
|
|
||||||
add_timer(&mpc_timer);
|
add_timer(&mpc_timer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue