diff options
author | Kees Cook | 2017-10-17 02:28:47 +0200 |
---|---|---|
committer | David S. Miller | 2017-10-18 13:39:36 +0200 |
commit | 4966babd904d7f8e9e20735f3637a98fd7ca538c (patch) | |
tree | 2f22401633c9519cbd96908c41107faf417b0e75 /net/rose/rose_route.c | |
parent | net/lapb: Convert timers to use timer_setup() (diff) | |
download | kernel-qcow2-linux-4966babd904d7f8e9e20735f3637a98fd7ca538c.tar.gz kernel-qcow2-linux-4966babd904d7f8e9e20735f3637a98fd7ca538c.tar.xz kernel-qcow2-linux-4966babd904d7f8e9e20735f3637a98fd7ca538c.zip |
net/rose: Convert timers to use timer_setup()
In preparation for unconditionally passing the struct timer_list pointer to
all timer callbacks, switch to using the new timer_setup() and from_timer()
to pass the timer pointer explicitly.
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: linux-hams@vger.kernel.org
Cc: netdev@vger.kernel.org
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/rose/rose_route.c')
-rw-r--r-- | net/rose/rose_route.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/rose/rose_route.c b/net/rose/rose_route.c index 452bbb38d943..65921cd10323 100644 --- a/net/rose/rose_route.c +++ b/net/rose/rose_route.c @@ -104,8 +104,8 @@ static int __must_check rose_add_node(struct rose_route_struct *rose_route, skb_queue_head_init(&rose_neigh->queue); - init_timer(&rose_neigh->ftimer); - init_timer(&rose_neigh->t0timer); + timer_setup(&rose_neigh->ftimer, NULL, 0); + timer_setup(&rose_neigh->t0timer, NULL, 0); if (rose_route->ndigis != 0) { rose_neigh->digipeat = @@ -390,8 +390,8 @@ void rose_add_loopback_neigh(void) skb_queue_head_init(&sn->queue); - init_timer(&sn->ftimer); - init_timer(&sn->t0timer); + timer_setup(&sn->ftimer, NULL, 0); + timer_setup(&sn->t0timer, NULL, 0); spin_lock_bh(&rose_neigh_list_lock); sn->next = rose_neigh_list; |