summaryrefslogtreecommitdiff
path: root/net/ipv4/netfilter/nf_nat_irc.c
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2007-11-05 20:43:30 -0800
committerDavid S. Miller <davem@sunset.davemloft.net>2007-11-07 04:08:23 -0800
commitd1332e0ab84479d941de5cf4a69c71dfd385a25e (patch)
tree0b929b9c8bd91199afde839bbc7a806cffe0817e /net/ipv4/netfilter/nf_nat_irc.c
parent0795c65d9f8de2bf9a62ae1f56e928c6b5ed75ab (diff)
[NETFILTER]: remove unneeded rcu_dereference() calls
As noticed by Paul McKenney, the rcu_dereference calls in the init path of NAT modules are unneeded, remove them. Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/netfilter/nf_nat_irc.c')
-rw-r--r--net/ipv4/netfilter/nf_nat_irc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/netfilter/nf_nat_irc.c b/net/ipv4/netfilter/nf_nat_irc.c
index 766e2c16c6b9..fe6f9cef6c85 100644
--- a/net/ipv4/netfilter/nf_nat_irc.c
+++ b/net/ipv4/netfilter/nf_nat_irc.c
@@ -74,7 +74,7 @@ static void __exit nf_nat_irc_fini(void)
static int __init nf_nat_irc_init(void)
{
- BUG_ON(rcu_dereference(nf_nat_irc_hook));
+ BUG_ON(nf_nat_irc_hook != NULL);
rcu_assign_pointer(nf_nat_irc_hook, help);
return 0;
}