diff options
author | Allen Pais <allen.lkml@gmail.com> | 2017-09-21 20:04:38 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-09-21 21:44:40 +0300 |
commit | f347bd6b5f6599fe67d040758947dbf9bdd89195 (patch) | |
tree | aaae9246f43e146652da403618d06994e5c19aca /drivers/net | |
parent | 4896ad68ec3803d01a0d9fead64451377ea1ec5f (diff) | |
download | linux-f347bd6b5f6599fe67d040758947dbf9bdd89195.tar.xz |
drivers: net: sdla: 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>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wan/sdla.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/wan/sdla.c b/drivers/net/wan/sdla.c index 236c62538036..0cc48902dbb9 100644 --- a/drivers/net/wan/sdla.c +++ b/drivers/net/wan/sdla.c @@ -1617,10 +1617,8 @@ static void setup_sdla(struct net_device *dev) flp->deassoc = sdla_deassoc; flp->dlci_conf = sdla_dlci_conf; - init_timer(&flp->timer); + setup_timer(&flp->timer, sdla_poll, (unsigned long)dev); flp->timer.expires = 1; - flp->timer.data = (unsigned long) dev; - flp->timer.function = sdla_poll; } static struct net_device *sdla; |