net: atm: 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. Also drops a redundant initialization that is already set up by DEFINE_TIMER. Cc: "David S. Miller" <davem@davemloft.net> Cc: Hans Liljestrand <ishkamiel@gmail.com> Cc: "Reshetova, Elena" <elena.reshetova@intel.com> Cc: Bhumika Goyal <bhumirks@gmail.com> Cc: Johannes Berg <johannes.berg@intel.com> Cc: Roopa Prabhu <roopa@cumulusnetworks.com> Cc: Augusto Mecking Caringi <augustocaringi@gmail.com> Cc: Jarod Wilson <jarod@redhat.com> Cc: Kalle Valo <kvalo@codeaurora.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Alexey Dobriyan <adobriyan@gmail.com> Cc: netdev@vger.kernel.org Signed-off-by: Kees Cook <keescook@chromium.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
99767f278c
commit
ba42179350
@@ -153,7 +153,7 @@ static int neigh_check_cb(struct neighbour *n)
|
||||
return 1;
|
||||
}
|
||||
|
||||
static void idle_timer_check(unsigned long dummy)
|
||||
static void idle_timer_check(struct timer_list *unused)
|
||||
{
|
||||
write_lock(&arp_tbl.lock);
|
||||
__neigh_for_each_release(&arp_tbl, neigh_check_cb);
|
||||
@@ -887,7 +887,7 @@ static int __init atm_clip_init(void)
|
||||
register_netdevice_notifier(&clip_dev_notifier);
|
||||
register_inetaddr_notifier(&clip_inet_notifier);
|
||||
|
||||
setup_timer(&idle_timer, idle_timer_check, 0);
|
||||
timer_setup(&idle_timer, idle_timer_check, 0);
|
||||
|
||||
#ifdef CONFIG_PROC_FS
|
||||
{
|
||||
|
Reference in New Issue
Block a user