hash table REFACTOR minor improvement
diff --git a/src/hash_table.c b/src/hash_table.c
index 97b20dd..9655bd6 100644
--- a/src/hash_table.c
+++ b/src/hash_table.c
@@ -459,8 +459,10 @@
uint32_t prev_rec_idx;
uint32_t rec_idx;
- LY_CHECK_ERR_RET(lyht_find_rec(ht, val_p, hash, 1, NULL, NULL, &found_rec),
- LOGARG(NULL, hash), LY_ENOTFOUND); /* hash not found */
+ if (lyht_find_rec(ht, val_p, hash, 1, ht->val_equal, NULL, NULL, &found_rec)) {
+ LOGARG(NULL, hash);
+ return LY_ENOTFOUND;
+ }
prev_rec_idx = LYHT_NO_RECORD;
LYHT_ITER_HLIST_RECS(ht, hlist_idx, rec_idx, rec) {