svn commit: r342907 - head/sys/netinet6
Gleb Smirnoff
glebius at FreeBSD.org
Thu Jan 10 00:52:07 UTC 2019
Author: glebius
Date: Thu Jan 10 00:52:06 2019
New Revision: 342907
URL: https://svnweb.freebsd.org/changeset/base/342907
Log:
Remove unnecessary ifdef. With INVARIANTS all KASSERTs are empty statements,
so won't be compiled in.
Modified:
head/sys/netinet6/in6_mcast.c
Modified: head/sys/netinet6/in6_mcast.c
==============================================================================
--- head/sys/netinet6/in6_mcast.c Thu Jan 10 00:37:14 2019 (r342906)
+++ head/sys/netinet6/in6_mcast.c Thu Jan 10 00:52:06 2019 (r342907)
@@ -1262,7 +1262,6 @@ in6_joingroup_locked(struct ifnet *ifp, const struct i
char ip6tbuf[INET6_ADDRSTRLEN];
#endif
-#ifdef INVARIANTS
/*
* Sanity: Check scope zone ID was set for ifp, if and
* only if group is scoped to an interface.
@@ -1274,7 +1273,6 @@ in6_joingroup_locked(struct ifnet *ifp, const struct i
KASSERT(mcaddr->s6_addr16[1] != 0,
("%s: scope zone ID not set", __func__));
}
-#endif
IN6_MULTI_LOCK_ASSERT();
IN6_MULTI_LIST_UNLOCK_ASSERT();
More information about the svn-src-all
mailing list