mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-03 23:28:58 +00:00
Remove two lock asserts that are unneeded due to subsequent unlocks.
This commit is contained in:
parent
b34b8d6783
commit
ff2cdcff19
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=161403
|
@ -1879,7 +1879,6 @@ bridge_forward(struct bridge_softc *sc, struct mbuf *m)
|
|||
struct ether_header *eh;
|
||||
|
||||
src_if = m->m_pkthdr.rcvif;
|
||||
BRIDGE_LOCK_ASSERT(sc);
|
||||
ifp = sc->sc_ifp;
|
||||
|
||||
sc->sc_ifp->if_ipackets++;
|
||||
|
@ -2225,7 +2224,6 @@ bridge_broadcast(struct bridge_softc *sc, struct ifnet *src_if,
|
|||
struct ifnet *dst_if;
|
||||
int error = 0, used = 0, i;
|
||||
|
||||
BRIDGE_LOCK_ASSERT(sc);
|
||||
BRIDGE_LOCK2REF(sc, error);
|
||||
if (error) {
|
||||
m_freem(m);
|
||||
|
|
Loading…
Reference in a new issue