rcu: convert uses of rcu_assign_pointer(x, NULL) to RCU_INIT_POINTER
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / net / 802 / stp.c
index 978c30b1b36b5a138eeeb7b9780009686f356d6e..0e136ef1e4bab47307d9fc382709b2c552281ecd 100644 (file)
@@ -88,9 +88,9 @@ void stp_proto_unregister(const struct stp_proto *proto)
 {
        mutex_lock(&stp_proto_mutex);
        if (is_zero_ether_addr(proto->group_address))
-               rcu_assign_pointer(stp_proto, NULL);
+               RCU_INIT_POINTER(stp_proto, NULL);
        else
-               rcu_assign_pointer(garp_protos[proto->group_address[5] -
+               RCU_INIT_POINTER(garp_protos[proto->group_address[5] -
                                               GARP_ADDR_MIN], NULL);
        synchronize_rcu();