Convert an #ifdef DIAGNOSTIC if/panic to a KASSERT.
MFC after: 1 week
This commit is contained in:
parent
9dea314c93
commit
f67e13d66d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=229546
@ -513,12 +513,8 @@ in6_ifattach_linklocal(struct ifnet *ifp, struct ifnet *altifp)
|
||||
}
|
||||
|
||||
ia = in6ifa_ifpforlinklocal(ifp, 0); /* ia must not be NULL */
|
||||
#ifdef DIAGNOSTIC
|
||||
if (!ia) {
|
||||
panic("ia == NULL in in6_ifattach_linklocal");
|
||||
/* NOTREACHED */
|
||||
}
|
||||
#endif
|
||||
KASSERT(ia != NULL, ("%s: ia == NULL, ifp=%p", __func__, ifp));
|
||||
|
||||
ifa_free(&ia->ia_ifa);
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user