summaryrefslogtreecommitdiffstats
path: root/sys/net
diff options
context:
space:
mode:
authorthompsa <thompsa@FreeBSD.org>2012-04-18 01:39:14 +0000
committerthompsa <thompsa@FreeBSD.org>2012-04-18 01:39:14 +0000
commit8379680eecc5cc25a40b6bcf23c1036832be4154 (patch)
tree5bb0636f33607d73eca69dc84e4bc5532bec5b1b /sys/net
parent279f465fd32017b325a0d72bdbdefc7c53ae9ea2 (diff)
downloadFreeBSD-src-8379680eecc5cc25a40b6bcf23c1036832be4154.zip
FreeBSD-src-8379680eecc5cc25a40b6bcf23c1036832be4154.tar.gz
Remove KASSERTS, they do not add any value here since the pointer is about to
be derefernced anyway.
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/if.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/net/if.c b/sys/net/if.c
index 42ccda7..8d2c5f2 100644
--- a/sys/net/if.c
+++ b/sys/net/if.c
@@ -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,
OpenPOWER on IntegriCloud