Remove unnecessary ifdef. With INVARIANTS all KASSERTs are empty statements,

so won't be compiled in.
This commit is contained in:
Gleb Smirnoff 2019-01-10 00:52:06 +00:00
parent 7b7f772fa0
commit c962ca9f2d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=342907

View file

@ -1262,7 +1262,6 @@ in6_joingroup_locked(struct ifnet *ifp, const struct in6_addr *mcaddr,
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 in6_addr *mcaddr,
KASSERT(mcaddr->s6_addr16[1] != 0,
("%s: scope zone ID not set", __func__));
}
#endif
IN6_MULTI_LOCK_ASSERT();
IN6_MULTI_LIST_UNLOCK_ASSERT();