mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-15 02:06:42 +07:00
drivers: net: cisco_hdlc: use setup_timer() helper.
Use setup_timer function instead of initializing timer with the function and data fields. Signed-off-by: Allen Pais <allen.lkml@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
f347bd6b5f
commit
dffec39fb1
@ -293,10 +293,8 @@ static void cisco_start(struct net_device *dev)
|
||||
st->up = st->txseq = st->rxseq = 0;
|
||||
spin_unlock_irqrestore(&st->lock, flags);
|
||||
|
||||
init_timer(&st->timer);
|
||||
setup_timer(&st->timer, cisco_timer, (unsigned long)dev);
|
||||
st->timer.expires = jiffies + HZ; /* First poll after 1 s */
|
||||
st->timer.function = cisco_timer;
|
||||
st->timer.data = (unsigned long)dev;
|
||||
add_timer(&st->timer);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user