summaryrefslogtreecommitdiffstats
path: root/drivers/net/wan
diff options
context:
space:
mode:
authorAllen Pais <allen.lkml@gmail.com>2017-09-21 19:05:15 +0200
committerDavid S. Miller <davem@davemloft.net>2017-09-21 20:44:43 +0200
commit8d81fe753c1572573be6d529a44b1506e3b0425d (patch)
tree4cda8fa6f3b36251bb0e2a3b19d62ea6ac32433f /drivers/net/wan
parentdrivers: net: dscc: use setup_timer() helper. (diff)
downloadlinux-8d81fe753c1572573be6d529a44b1506e3b0425d.tar.xz
linux-8d81fe753c1572573be6d529a44b1506e3b0425d.zip
drivers: net: hdlc_ppp: 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/wan')
-rw-r--r--drivers/net/wan/hdlc_ppp.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/wan/hdlc_ppp.c b/drivers/net/wan/hdlc_ppp.c
index 0d2e00ece804..c7721c729541 100644
--- a/drivers/net/wan/hdlc_ppp.c
+++ b/drivers/net/wan/hdlc_ppp.c
@@ -610,9 +610,7 @@ static void ppp_start(struct net_device *dev)
for (i = 0; i < IDX_COUNT; i++) {
struct proto *proto = &ppp->protos[i];
proto->dev = dev;
- init_timer(&proto->timer);
- proto->timer.function = ppp_timer;
- proto->timer.data = (unsigned long)proto;
+ setup_timer(&proto->timer, ppp_timer, (unsigned long)proto);
proto->state = CLOSED;
}
ppp->protos[IDX_LCP].pid = PID_LCP;