Author: glebius
Date: Mon Feb 13 13:07:56 2012
New Revision: 231585
URL: http://svn.freebsd.org/changeset/base/231585

Log:
  No need to optimise for a node with no hooks, my braino.

Modified:
  head/sys/netgraph/ng_socket.c

Modified: head/sys/netgraph/ng_socket.c
==============================================================================
--- head/sys/netgraph/ng_socket.c       Mon Feb 13 11:59:59 2012        
(r231584)
+++ head/sys/netgraph/ng_socket.c       Mon Feb 13 13:07:56 2012        
(r231585)
@@ -850,12 +850,9 @@ ngs_findhook(node_p node, const char *na
        uint32_t h;
 
        /*
-        * Microoptimisations for a ng_socket with no
-        * hooks, or with a single hook, which is a
-        * common case.
+        * Microoptimisation for an ng_socket with
+        * a single hook, which is a common case.
         */
-       if (node->nd_numhooks == 0)
-               return (NULL);
        if (node->nd_numhooks == 1) {
                hook_p hook;
 
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to