data tree BUGFIX use ENOT for false compare
diff --git a/src/tree_data.c b/src/tree_data.c
index baf96ab..6b5a4e7 100644
--- a/src/tree_data.c
+++ b/src/tree_data.c
@@ -254,7 +254,7 @@
     /* compare data */
     if (type->plugin->compare(&node->value, &data)) {
         /* do not assign it directly from the compare callback to keep possible LY_EINCOMPLETE from validation */
-        ret = LY_EVALID;
+        ret = LY_ENOT;
     }
 
 cleanup:
diff --git a/src/tree_data.h b/src/tree_data.h
index f891c45..4d70a76 100644
--- a/src/tree_data.h
+++ b/src/tree_data.h
@@ -815,6 +815,7 @@
  * @return LY_SUCCESS on success
  * @return LY_EINCOMPLETE in case of success when the @p trees is not provided and it was needed to finish the validation of
  * the given string @p value (e.g. due to require-instance).
+ * @return LY_ENOT if the values do not match.
  * @return LY_ERR value if an error occurred.
  */
 LY_ERR lyd_value_compare(const struct lyd_node_term *node, const char *value, size_t value_len,