Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8d81fe75 authored by Allen Pais's avatar Allen Pais Committed by David S. Miller
Browse files

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: default avatarAllen Pais <allen.lkml@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f2803332
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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;