svn commit: r231585 - head/sys/netgraph
Gleb Smirnoff
glebius at FreeBSD.org
Mon Feb 13 13:07:57 UTC 2012
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;
More information about the svn-src-all
mailing list