small changes
[c11tester.git] / cyclegraph.cc
index 6c7e945e98ee8e58ab0a73911f24b8484a935389..1d9533f4ba9b6f2fa61ae0018bb36dc22de5abcc 100644 (file)
@@ -70,8 +70,7 @@ void CycleGraph::addNodeEdge(CycleNode *fromnode, CycleNode *tonode, bool forcee
         * If the fromnode has a rmwnode, we should
         * follow its RMW chain to add an edge at the end.
         */
-       while (fromnode->getRMW()) {
-               CycleNode *nextnode = fromnode->getRMW();
+       while (CycleNode * nextnode = fromnode->getRMW()) {
                if (nextnode == tonode)
                        break;
                fromnode = nextnode;