mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 17:30:02 +00:00
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>
This commit is contained in:
parent
f2803332f2
commit
8d81fe753c
1 changed files with 1 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue