diff options
author | Patrick McHardy <kaber@trash.net> | 2007-02-12 11:09:35 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2007-02-12 11:09:35 -0800 |
commit | e4ba13088de7fa384087af398df6629fadb363ba (patch) | |
tree | d23c034597d54888c8a7fc2c706b6dfe57503db7 /net/netfilter | |
parent | c3a47ab3e5ad62601449e4e5401352271b777e28 (diff) | |
download | op-kernel-dev-e4ba13088de7fa384087af398df6629fadb363ba.zip op-kernel-dev-e4ba13088de7fa384087af398df6629fadb363ba.tar.gz |
[NETFILTER]: Remove unnecessary synchronize_net() in nf_register_hook
We're only adding to the list, no need to synchronize.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/netfilter')
-rw-r--r-- | net/netfilter/core.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/net/netfilter/core.c b/net/netfilter/core.c index ad24d0c..a66bd6a 100644 --- a/net/netfilter/core.c +++ b/net/netfilter/core.c @@ -69,8 +69,6 @@ int nf_register_hook(struct nf_hook_ops *reg) } list_add_rcu(®->list, i->prev); spin_unlock_bh(&nf_hook_lock); - - synchronize_net(); return 0; } EXPORT_SYMBOL(nf_register_hook); |