projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc75568
)
atm: idt77105: Drop needless setup_timer()
author
Kees Cook
<
[email protected]
>
Tue, 10 Oct 2017 19:25:48 +0000
(12:25 -0700)
committer
David S. Miller
<
[email protected]
>
Wed, 11 Oct 2017 21:15:21 +0000
(14:15 -0700)
Calling setup_timer() is redundant when DEFINE_TIMER() has been used.
Cc: Chas Williams <
[email protected]
>
Cc:
[email protected]
Cc:
[email protected]
Signed-off-by: Kees Cook <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/atm/idt77105.c
patch
|
blob
|
history
diff --git
a/drivers/atm/idt77105.c
b/drivers/atm/idt77105.c
index 082aa02abc5742fa68d3073b361d6afbf13ab5da..d781b3f87693855b0b8d07634ab07d11f868669b 100644
(file)
--- a/
drivers/atm/idt77105.c
+++ b/
drivers/atm/idt77105.c
@@
-306,11
+306,9
@@
static int idt77105_start(struct atm_dev *dev)
if (start_timer) {
start_timer = 0;
- setup_timer(&stats_timer, idt77105_stats_timer_func, 0UL);
stats_timer.expires = jiffies+IDT77105_STATS_TIMER_PERIOD;
add_timer(&stats_timer);
- setup_timer(&restart_timer, idt77105_restart_timer_func, 0UL);
restart_timer.expires = jiffies+IDT77105_RESTART_TIMER_PERIOD;
add_timer(&restart_timer);
}