mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-23 19:28:36 +00:00
if_tuntap: remove redundant check
eh can't be NULL, so there is no need to check for it. Reported by: zlei MFC after: 1 week Sponsored by: Netflix, Inc.
This commit is contained in:
parent
ff69d13a50
commit
44669b7650
|
@ -1779,7 +1779,7 @@ tunwrite_l2(struct tuntap_softc *tp, struct mbuf *m,
|
|||
|
||||
eh = mtod(m, struct ether_header *);
|
||||
|
||||
if (eh && (ifp->if_flags & IFF_PROMISC) == 0 &&
|
||||
if ((ifp->if_flags & IFF_PROMISC) == 0 &&
|
||||
!ETHER_IS_MULTICAST(eh->ether_dhost) &&
|
||||
bcmp(eh->ether_dhost, IF_LLADDR(ifp), ETHER_ADDR_LEN) != 0) {
|
||||
m_freem(m);
|
||||
|
|
Loading…
Reference in a new issue