diff options
Diffstat (limited to 'net/netrom/nr_timer.c')
-rw-r--r-- | net/netrom/nr_timer.c | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/net/netrom/nr_timer.c b/net/netrom/nr_timer.c index 6cfaad952c6c..1cb98e88f5e1 100644 --- a/net/netrom/nr_timer.c +++ b/net/netrom/nr_timer.c | |||
@@ -40,21 +40,10 @@ void nr_init_timers(struct sock *sk) | |||
40 | { | 40 | { |
41 | struct nr_sock *nr = nr_sk(sk); | 41 | struct nr_sock *nr = nr_sk(sk); |
42 | 42 | ||
43 | init_timer(&nr->t1timer); | 43 | setup_timer(&nr->t1timer, nr_t1timer_expiry, (unsigned long)sk); |
44 | nr->t1timer.data = (unsigned long)sk; | 44 | setup_timer(&nr->t2timer, nr_t2timer_expiry, (unsigned long)sk); |
45 | nr->t1timer.function = &nr_t1timer_expiry; | 45 | setup_timer(&nr->t4timer, nr_t4timer_expiry, (unsigned long)sk); |
46 | 46 | setup_timer(&nr->idletimer, nr_idletimer_expiry, (unsigned long)sk); | |
47 | init_timer(&nr->t2timer); | ||
48 | nr->t2timer.data = (unsigned long)sk; | ||
49 | nr->t2timer.function = &nr_t2timer_expiry; | ||
50 | |||
51 | init_timer(&nr->t4timer); | ||
52 | nr->t4timer.data = (unsigned long)sk; | ||
53 | nr->t4timer.function = &nr_t4timer_expiry; | ||
54 | |||
55 | init_timer(&nr->idletimer); | ||
56 | nr->idletimer.data = (unsigned long)sk; | ||
57 | nr->idletimer.function = &nr_idletimer_expiry; | ||
58 | 47 | ||
59 | /* initialized by sock_init_data */ | 48 | /* initialized by sock_init_data */ |
60 | sk->sk_timer.data = (unsigned long)sk; | 49 | sk->sk_timer.data = (unsigned long)sk; |