diff options
author | glebius <glebius@FreeBSD.org> | 2012-02-13 13:07:56 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2012-02-13 13:07:56 +0000 |
commit | 01913307cadcc6347df3e467eddbb8dd7d777db7 (patch) | |
tree | 62063ade57e9bbb18eae8c96c3fb7515a4c54412 /sys/netgraph/ng_socket.c | |
parent | b36b72f1543152663134dbccfa40dac46c847910 (diff) | |
download | FreeBSD-src-01913307cadcc6347df3e467eddbb8dd7d777db7.zip FreeBSD-src-01913307cadcc6347df3e467eddbb8dd7d777db7.tar.gz |
No need to optimise for a node with no hooks, my braino.
Diffstat (limited to 'sys/netgraph/ng_socket.c')
-rw-r--r-- | sys/netgraph/ng_socket.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/netgraph/ng_socket.c b/sys/netgraph/ng_socket.c index f997d49..c9d9346 100644 --- a/sys/netgraph/ng_socket.c +++ b/sys/netgraph/ng_socket.c @@ -850,12 +850,9 @@ ngs_findhook(node_p node, const char *name) 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; |