Simplify error case
Submitted by: thompsa@
This commit is contained in:
parent
6e21b3a1b6
commit
bf7a35de2d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=238355
@ -1811,10 +1811,10 @@ bridge_enqueue(struct bridge_softc *sc, struct ifnet *dst_ifp, struct mbuf *m)
|
||||
m->m_flags &= ~M_VLANTAG;
|
||||
}
|
||||
|
||||
if (err == 0)
|
||||
err = dst_ifp->if_transmit(dst_ifp, m);
|
||||
else
|
||||
m_freem(m);
|
||||
if ((err = dst_ifp->if_transmit(dst_ifp, m))) {
|
||||
m_freem(m0);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (err == 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user