validation REFACTOR redundant safe loop
diff --git a/src/validation.c b/src/validation.c
index f4d584d..e15ff63 100644
--- a/src/validation.c
+++ b/src/validation.c
@@ -1552,10 +1552,10 @@
 {
     LY_ERR r, rc = LY_SUCCESS;
     const char *innode;
-    struct lyd_node *next = NULL, *node;
+    struct lyd_node *node;
 
     /* validate all restrictions of nodes themselves */
-    LY_LIST_FOR_SAFE(first, next, node) {
+    LY_LIST_FOR(first, node) {
         if (node->flags & LYD_EXT) {
             /* ext instance data should have already been validated */
             continue;