]> git.baikalelectronics.ru Git - kernel.git/commit
staging: wilc1000: move 'aging_timer' static variable to wilc_priv struct
authorAjay Singh <ajay.kathat@microchip.com>
Tue, 4 Sep 2018 06:39:18 +0000 (12:09 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 Sep 2018 15:17:37 +0000 (17:17 +0200)
commit19438d93c8dbe124ff0d7f3e840f856888d46aa3
treeba741c801bf96464954c56506205a9e4e1787122
parent45a7e4726ae7d078fad8df866af1549eaccecbe8
staging: wilc1000: move 'aging_timer' static variable to wilc_priv struct

Moved 'aging_timer' to wilc_priv struct instead of having it as static
variable.
As 'aging_timer' is maintained for each interfaces so 'op_ifcs' check is
not required before the timer_setup() and del_timer_sync() call.

Signed-off-by: Ajay Singh <ajay.kathat@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/wilc_wfi_cfgoperations.c
drivers/staging/wilc1000/wilc_wfi_netdevice.h