xpath BUGFIX update return value check
diff --git a/src/xpath.c b/src/xpath.c
index ae0c627..09f1111 100644
--- a/src/xpath.c
+++ b/src/xpath.c
@@ -568,7 +568,7 @@
                     LY_CHECK_RET(ly_out_new_memory(&buf, 0, &out));
                     rc = lyd_print_all(out, any->value.tree, LYD_XML, 0);
                     ly_out_free(out, NULL, 0);
-                    LY_CHECK_RET(rc < 0, -rc);
+                    LY_CHECK_RET(rc);
                     break;
                 case LYD_ANYDATA_LYB:
                     LOGERR(set->ctx, LY_EINVAL, "Cannot convert LYB anydata into string.");