projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2ea5b4d
)
net/atm/mpc: Avoid open-coded assignment of timer callback function
author
Kees Cook
<
[email protected]
>
Tue, 22 Aug 2017 19:41:43 +0000
(12:41 -0700)
committer
Kees Cook
<
[email protected]
>
Tue, 21 Nov 2017 23:46:44 +0000
(15:46 -0800)
Instead of a single function assignment, just fold this into DEFINE_TIMER().
Cc: "David S. Miller" <
[email protected]
>
Signed-off-by: Kees Cook <
[email protected]
>
net/atm/mpc.c
patch
|
blob
|
history
diff --git
a/net/atm/mpc.c
b/net/atm/mpc.c
index e882d8b5db05e889be00fe26a0595458ead470a4..7c6a1cc760a2d075aade51a143cba668a52397dd 100644
(file)
--- a/
net/atm/mpc.c
+++ b/
net/atm/mpc.c
@@
-121,7
+121,7
@@
static struct notifier_block mpoa_notifier = {
struct mpoa_client *mpcs = NULL; /* FIXME */
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)
@@
-1413,7
+1413,6
@@
static void mpc_timer_refresh(void)
{
mpc_timer.expires = jiffies + (MPC_P2 * HZ);
checking_time = mpc_timer.expires;
- mpc_timer.function = (TIMER_FUNC_TYPE)mpc_cache_check;
add_timer(&mpc_timer);
}