rcu: convert uses of rcu_assign_pointer(x, NULL) to RCU_INIT_POINTER
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / net / ipv4 / netfilter / nf_nat_tftp.c
index 7274a43c7a12f08210d09a14bb677450f598e246..a2901bf829c09165ef9bc56b6627e6d2511d66ee 100644 (file)
@@ -36,14 +36,14 @@ static unsigned int help(struct sk_buff *skb,
 
 static void __exit nf_nat_tftp_fini(void)
 {
-       rcu_assign_pointer(nf_nat_tftp_hook, NULL);
+       RCU_INIT_POINTER(nf_nat_tftp_hook, NULL);
        synchronize_rcu();
 }
 
 static int __init nf_nat_tftp_init(void)
 {
        BUG_ON(nf_nat_tftp_hook != NULL);
-       rcu_assign_pointer(nf_nat_tftp_hook, help);
+       RCU_INIT_POINTER(nf_nat_tftp_hook, help);
        return 0;
 }