Skip to content

Commit b784ecb

Browse files
keesdavem330
authored andcommitted
atm: idt77105: Drop needless setup_timer()
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]>
1 parent fc75568 commit b784ecb

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/atm/idt77105.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,11 +306,9 @@ static int idt77105_start(struct atm_dev *dev)
306306
if (start_timer) {
307307
start_timer = 0;
308308

309-
setup_timer(&stats_timer, idt77105_stats_timer_func, 0UL);
310309
stats_timer.expires = jiffies+IDT77105_STATS_TIMER_PERIOD;
311310
add_timer(&stats_timer);
312311

313-
setup_timer(&restart_timer, idt77105_restart_timer_func, 0UL);
314312
restart_timer.expires = jiffies+IDT77105_RESTART_TIMER_PERIOD;
315313
add_timer(&restart_timer);
316314
}

0 commit comments

Comments
 (0)