]> git.droids-corp.org - protos/libecoli.git/blobdiff - lib/ecoli_keyval.c
doc
[protos/libecoli.git] / lib / ecoli_keyval.c
index 97c5da8da80b798c246928cc269266845f9dc61a..12fe66bb51ea24c143a59a7a579f74af3704810b 100644 (file)
@@ -80,10 +80,8 @@ ec_keyval_lookup(const struct ec_keyval *keyval, const char *key)
 
        h = ec_murmurhash3(key, strlen(key), ec_keyval_seed);
        LIST_FOREACH(ref, &keyval->table[h & mask], next) {
-               if (strcmp(ref->elt->key, key) == 0) {
-                       errno = 0;
+               if (strcmp(ref->elt->key, key) == 0)
                        return ref;
-               }
        }
 
        errno = ENOENT;