]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - net/cdp.c
net: Refactor to protect access to the NetState variable
[karo-tx-uboot.git] / net / cdp.c
index 3dab6a1462945ad7bd58c25418b9bb56b88dae62..fa924097ac8750f996c5a80d1719b851f7440593 100644 (file)
--- a/net/cdp.c
+++ b/net/cdp.c
@@ -235,7 +235,7 @@ CDPTimeout(void)
        if (!CDPOK)
                NetStartAgain();
        else
-               NetState = NETLOOP_SUCCESS;
+               net_set_state(NETLOOP_SUCCESS);
 }
 
 static void