svn commit: r234403 - head/sys/net

Andrew Thompson thompsa at FreeBSD.org
Wed Apr 18 01:39:15 UTC 2012


Author: thompsa
Date: Wed Apr 18 01:39:14 2012
New Revision: 234403
URL: http://svn.freebsd.org/changeset/base/234403

Log:
  Remove KASSERTS, they do not add any value here since the pointer is about to
  be derefernced anyway.

Modified:
  head/sys/net/if.c

Modified: head/sys/net/if.c
==============================================================================
--- head/sys/net/if.c	Tue Apr 17 22:05:55 2012	(r234402)
+++ head/sys/net/if.c	Wed Apr 18 01:39:14 2012	(r234403)
@@ -1909,14 +1909,10 @@ do_link_state_change(void *arg, int pend
 		(*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,


More information about the svn-src-head mailing list