Date: Wed, 18 Apr 2012 01:39:14 +0000 (UTC) From: Andrew Thompson <thompsa@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r234403 - head/sys/net Message-ID: <201204180139.q3I1dEPZ008424@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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,
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201204180139.q3I1dEPZ008424>