diff options
author | Patrick McHardy <kaber@trash.net> | 2007-11-06 04:43:30 (GMT) |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-11-07 12:08:23 (GMT) |
commit | d1332e0ab84479d941de5cf4a69c71dfd385a25e (patch) | |
tree | 0b929b9c8bd91199afde839bbc7a806cffe0817e /net/ipv4/netfilter/nf_nat_tftp.c | |
parent | 0795c65d9f8de2bf9a62ae1f56e928c6b5ed75ab (diff) | |
download | linux-fsl-qoriq-d1332e0ab84479d941de5cf4a69c71dfd385a25e.tar.xz |
[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_tftp.c')
-rw-r--r-- | net/ipv4/netfilter/nf_nat_tftp.c | 2 |
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 0ecec70..1360a94 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; } |