diff options
author | Kees Cook <keescook@chromium.org> | 2017-08-22 15:41:43 -0400 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2017-11-21 18:46:44 -0500 |
commit | 1e9aa74ecd84ac3eeffb7a9f08f9021d7df6486a (patch) | |
tree | c1c1d3526722f494e84ef9d75b27b834c8f84241 /net/atm/mpc.c | |
parent | 2ea5b4def995994a3c5b8fe075b42c1619873ad6 (diff) |
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>
Diffstat (limited to 'net/atm/mpc.c')
-rw-r--r-- | net/atm/mpc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/atm/mpc.c b/net/atm/mpc.c index e882d8b5db05..7c6a1cc760a2 100644 --- a/net/atm/mpc.c +++ b/net/atm/mpc.c | |||
@@ -121,7 +121,7 @@ static struct notifier_block mpoa_notifier = { | |||
121 | 121 | ||
122 | struct mpoa_client *mpcs = NULL; /* FIXME */ | 122 | struct mpoa_client *mpcs = NULL; /* FIXME */ |
123 | static struct atm_mpoa_qos *qos_head = NULL; | 123 | static struct atm_mpoa_qos *qos_head = NULL; |
124 | static DEFINE_TIMER(mpc_timer, NULL); | 124 | static DEFINE_TIMER(mpc_timer, mpc_cache_check); |
125 | 125 | ||
126 | 126 | ||
127 | static struct mpoa_client *find_mpc_by_itfnum(int itf) | 127 | static struct mpoa_client *find_mpc_by_itfnum(int itf) |
@@ -1413,7 +1413,6 @@ static void mpc_timer_refresh(void) | |||
1413 | { | 1413 | { |
1414 | mpc_timer.expires = jiffies + (MPC_P2 * HZ); | 1414 | mpc_timer.expires = jiffies + (MPC_P2 * HZ); |
1415 | checking_time = mpc_timer.expires; | 1415 | checking_time = mpc_timer.expires; |
1416 | mpc_timer.function = (TIMER_FUNC_TYPE)mpc_cache_check; | ||
1417 | add_timer(&mpc_timer); | 1416 | add_timer(&mpc_timer); |
1418 | } | 1417 | } |
1419 | 1418 | ||