rcu: convert uses of rcu_assign_pointer(x, NULL) to RCU_INIT_POINTER
[deliverable/linux.git] / net / core / netpoll.c
index adf84dd8c7b5b44a215b7e79a3b3a838fe09b7d2..d676a561d983afd62db8cf917816367727ae8b16 100644 (file)
@@ -760,7 +760,7 @@ int __netpoll_setup(struct netpoll *np)
        }
 
        /* last thing to do is link it to the net device structure */
-       rcu_assign_pointer(ndev->npinfo, npinfo);
+       RCU_INIT_POINTER(ndev->npinfo, npinfo);
 
        return 0;
 
@@ -901,7 +901,7 @@ void __netpoll_cleanup(struct netpoll *np)
                if (ops->ndo_netpoll_cleanup)
                        ops->ndo_netpoll_cleanup(np->dev);
 
-               rcu_assign_pointer(np->dev->npinfo, NULL);
+               RCU_INIT_POINTER(np->dev->npinfo, NULL);
 
                /* avoid racing with NAPI reading npinfo */
                synchronize_rcu_bh();
This page took 0.024674 seconds and 5 git commands to generate.