mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-17 04:27:02 +07:00
drivers : net: niu: 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
27dd085264
commit
ba4cc08793
@ -6123,10 +6123,8 @@ static int niu_open(struct net_device *dev)
|
||||
|
||||
err = niu_init_hw(np);
|
||||
if (!err) {
|
||||
init_timer(&np->timer);
|
||||
setup_timer(&np->timer, niu_timer, (unsigned long)np);
|
||||
np->timer.expires = jiffies + HZ;
|
||||
np->timer.data = (unsigned long) np;
|
||||
np->timer.function = niu_timer;
|
||||
|
||||
err = niu_enable_interrupts(np, 1);
|
||||
if (err)
|
||||
|
Loading…
Reference in New Issue
Block a user