Remove unnecessary ifdef. With INVARIANTS all KASSERTs are empty statements,
so won't be compiled in.
This commit is contained in:
parent
7b7f772fa0
commit
c962ca9f2d
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user