aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/netfilter/nf_nat_tftp.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_tftp.c
parent[NETFILTER]: Clean up Makefile (diff)
downloadlinux-dev-d1332e0ab84479d941de5cf4a69c71dfd385a25e.tar.xz
linux-dev-d1332e0ab84479d941de5cf4a69c71dfd385a25e.zip
[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 '')
-rw-r--r--net/ipv4/netfilter/nf_nat_tftp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/netfilter/nf_nat_tftp.c b/net/ipv4/netfilter/nf_nat_tftp.c
index 0ecec701cb44..1360a94766dd 100644
--- a/net/ipv4/netfilter/nf_nat_tftp.c
+++ b/net/ipv4/netfilter/nf_nat_tftp.c
@@ -43,7 +43,7 @@ static void __exit nf_nat_tftp_fini(void)
static int __init nf_nat_tftp_init(void)
{
- BUG_ON(rcu_dereference(nf_nat_tftp_hook));
+ BUG_ON(nf_nat_tftp_hook != NULL);
rcu_assign_pointer(nf_nat_tftp_hook, help);
return 0;
}