svn commit: r238355 - head/sys/net
Ed Maste
emaste at FreeBSD.org
Tue Jul 10 20:59:36 UTC 2012
Author: emaste
Date: Tue Jul 10 20:59:35 2012
New Revision: 238355
URL: http://svn.freebsd.org/changeset/base/238355
Log:
Simplify error case
Submitted by: thompsa@
Modified:
head/sys/net/if_bridge.c
Modified: head/sys/net/if_bridge.c
==============================================================================
--- head/sys/net/if_bridge.c Tue Jul 10 19:48:42 2012 (r238354)
+++ head/sys/net/if_bridge.c Tue Jul 10 20:59:35 2012 (r238355)
@@ -1811,10 +1811,10 @@ bridge_enqueue(struct bridge_softc *sc,
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) {
More information about the svn-src-head
mailing list