diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2016-11-16 14:25:20 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2016-11-16 14:25:20 +0000 |
commit | 11fa4b7c1f0063b814681b1f24245800f7e7373e (patch) | |
tree | accb8765327292a6ec352180bcd66caef3f35ced /sys/net/if_spppsubr.c | |
parent | 3d0e10ce18f5ab22c81077982b4926c5684c2746 (diff) |
if_link_state_change() doesn't need to be called under splsoftnet(),
it just schedule a task.
Diffstat (limited to 'sys/net/if_spppsubr.c')
-rw-r--r-- | sys/net/if_spppsubr.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/net/if_spppsubr.c b/sys/net/if_spppsubr.c index 4a480b2b177..b0046bffa40 100644 --- a/sys/net/if_spppsubr.c +++ b/sys/net/if_spppsubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_spppsubr.c,v 1.155 2016/07/11 13:06:31 bluhm Exp $ */ +/* $OpenBSD: if_spppsubr.c,v 1.156 2016/11/16 14:25:19 mpi Exp $ */ /* * Synchronous PPP link level subroutines. * @@ -4835,7 +4835,7 @@ void sppp_set_phase(struct sppp *sp) { STDDCL; - int lstate, s; + int lstate; if (debug) log(LOG_INFO, SPP_FMT "phase %s\n", SPP_ARGS(ifp), @@ -4849,8 +4849,6 @@ sppp_set_phase(struct sppp *sp) if (ifp->if_link_state != lstate) { ifp->if_link_state = lstate; - s = splsoftnet(); if_link_state_change(ifp); - splx(s); } } |