diff options
author | Kees Cook <keescook@chromium.org> | 2017-10-10 15:25:48 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-10-11 17:15:21 -0400 |
commit | b784ecba51da465bc15fdd1d6715479f3adc560e (patch) | |
tree | 2704bbf55df5c4b91bc2a465ac0c3f2d860c63ac /drivers/atm | |
parent | fc7556877d1748ac00958822a0a3bba1d4bd9e0d (diff) |
atm: idt77105: Drop needless setup_timer()
Calling setup_timer() is redundant when DEFINE_TIMER() has been used.
Cc: Chas Williams <3chas3@gmail.com>
Cc: linux-atm-general@lists.sourceforge.net
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 'drivers/atm')
-rw-r--r-- | drivers/atm/idt77105.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/atm/idt77105.c b/drivers/atm/idt77105.c index 082aa02abc57..d781b3f87693 100644 --- a/drivers/atm/idt77105.c +++ b/drivers/atm/idt77105.c | |||
@@ -306,11 +306,9 @@ static int idt77105_start(struct atm_dev *dev) | |||
306 | if (start_timer) { | 306 | if (start_timer) { |
307 | start_timer = 0; | 307 | start_timer = 0; |
308 | 308 | ||
309 | setup_timer(&stats_timer, idt77105_stats_timer_func, 0UL); | ||
310 | stats_timer.expires = jiffies+IDT77105_STATS_TIMER_PERIOD; | 309 | stats_timer.expires = jiffies+IDT77105_STATS_TIMER_PERIOD; |
311 | add_timer(&stats_timer); | 310 | add_timer(&stats_timer); |
312 | 311 | ||
313 | setup_timer(&restart_timer, idt77105_restart_timer_func, 0UL); | ||
314 | restart_timer.expires = jiffies+IDT77105_RESTART_TIMER_PERIOD; | 312 | restart_timer.expires = jiffies+IDT77105_RESTART_TIMER_PERIOD; |
315 | add_timer(&restart_timer); | 313 | add_timer(&restart_timer); |
316 | } | 314 | } |