Remove KASSERTS, they do not add any value here since the pointer is about to
be derefernced anyway.
This commit is contained in:
parent
c92c6224f9
commit
ddf3201009
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=234403
@ -1909,14 +1909,10 @@ do_link_state_change(void *arg, int pending)
|
||||
(*ng_ether_link_state_p)(ifp, link_state);
|
||||
if (ifp->if_carp)
|
||||
(*carp_linkstate_p)(ifp);
|
||||
if (ifp->if_bridge) {
|
||||
KASSERT(bstp_linkstate_p != NULL,("if_bridge bstp not loaded!"));
|
||||
if (ifp->if_bridge)
|
||||
(*bstp_linkstate_p)(ifp, link_state);
|
||||
}
|
||||
if (ifp->if_lagg) {
|
||||
KASSERT(lagg_linkstate_p != NULL,("if_lagg not loaded!"));
|
||||
if (ifp->if_lagg)
|
||||
(*lagg_linkstate_p)(ifp, link_state);
|
||||
}
|
||||
|
||||
if (IS_DEFAULT_VNET(curvnet))
|
||||
devctl_notify("IFNET", ifp->if_xname,
|
||||
|
Loading…
Reference in New Issue
Block a user