summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2019-03-08 17:49:37 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2019-03-08 17:49:37 +0000
commit3ab286e9beb79e06fe10c3d1c066bb82b5ea8cfa (patch)
treed24ff59fbef2b7a3e3601f3d1bba0b31515d6a97 /sys
parent03fc45ea1a030e0c76d696e0d321fc2c81149d1e (diff)
Do not grab a `bif' pointer again, we already have it.
ok visa@
Diffstat (limited to 'sys')
-rw-r--r--sys/net/if_bridge.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/net/if_bridge.c b/sys/net/if_bridge.c
index 3f1dce097fb..7b241500f96 100644
--- a/sys/net/if_bridge.c
+++ b/sys/net/if_bridge.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_bridge.c,v 1.323 2019/03/08 17:48:35 mpi Exp $ */
+/* $OpenBSD: if_bridge.c,v 1.324 2019/03/08 17:49:36 mpi Exp $ */
/*
* Copyright (c) 1999, 2000 Jason L. Wright (jason@thought.net)
@@ -779,7 +779,6 @@ bridge_output(struct ifnet *ifp, struct mbuf *m, struct sockaddr *sa,
* get there, send to all interfaces.
*/
if (dst_if == NULL) {
- struct bridge_iflist *bif, *bif0;
struct mbuf *mc;
int used = 0;
@@ -813,9 +812,7 @@ bridge_output(struct ifnet *ifp, struct mbuf *m, struct sockaddr *sa,
}
}
- bif0 = (struct bridge_iflist *)dst_if->if_bridgeport;
- KASSERT(bif0 != NULL);
- if (bridge_filterrule(&bif0->bif_brlout, eh, mc) ==
+ if (bridge_filterrule(&bif->bif_brlout, eh, mc) ==
BRL_ACTION_BLOCK)
continue;