diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2018-12-07 16:17:52 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2018-12-07 16:17:52 +0000 |
commit | 48748121e40c948fb0dc3195fc781ed26e16029c (patch) | |
tree | f65bb45c28e9f6c376f874cc36db0d84ea338689 /sys | |
parent | a4afb01e3e001612fe2a92cbe314c6e8c8ea81ec (diff) |
Remove useless spl protection.
ok visa@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/net/bridgestp.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/net/bridgestp.c b/sys/net/bridgestp.c index 3eddc55d1fd..3ccd36ff252 100644 --- a/sys/net/bridgestp.c +++ b/sys/net/bridgestp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bridgestp.c,v 1.66 2018/10/22 13:18:23 mpi Exp $ */ +/* $OpenBSD: bridgestp.c,v 1.67 2018/12/07 16:17:51 mpi Exp $ */ /* * Copyright (c) 2000 Jason L. Wright (jason@thought.net) @@ -1897,9 +1897,7 @@ struct bstp_state * bstp_create(struct ifnet *ifp) { struct bstp_state *bs; - int s; - s = splnet(); bs = malloc(sizeof(*bs), M_DEVBUF, M_WAITOK|M_ZERO); LIST_INIT(&bs->bs_bplist); @@ -1915,8 +1913,6 @@ bstp_create(struct ifnet *ifp) getmicrotime(&bs->bs_last_tc_time); - splx(s); - return (bs); } |