mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 04:43:53 +00:00
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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=342907
|
@ -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 a new issue