Skip to content

Commit f12d33f

Browse files
stffrdhrndavem330
authored andcommitted
3c59x: Ensure to apply the expires time
In commit 5b6490d ("3c59x: Use setup_timer()") Amitoj removed add_timer which sets up the epires timer. In this patch the behavior is restore but it uses mod_timer which is a bit more compact. Signed-off-by: Stafford Horne <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent f73e0c2 commit f12d33f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/3com/3c59x.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1602,7 +1602,7 @@ vortex_up(struct net_device *dev)
16021602
}
16031603

16041604
setup_timer(&vp->timer, vortex_timer, (unsigned long)dev);
1605-
vp->timer.expires = RUN_AT(media_tbl[dev->if_port].wait);
1605+
mod_timer(&vp->timer, RUN_AT(media_tbl[dev->if_port].wait));
16061606
setup_timer(&vp->rx_oom_timer, rx_oom_timer, (unsigned long)dev);
16071607

16081608
if (vortex_debug > 1)

0 commit comments

Comments
 (0)