diff options
author | Kay Sievers <kay@vrfy.org> | 2013-08-15 15:15:36 +0200 |
---|---|---|
committer | Kay Sievers <kay@vrfy.org> | 2013-08-15 17:51:02 +0200 |
commit | 585275000ccd522f403365236492dc924778d286 (patch) | |
tree | eead860592ea944fc46468eb78001d3b1fcdfe58 | |
parent | 24a0282324d774b2f3c7b16070015598c1665ab8 (diff) |
hashmap: remove empty lines
-rw-r--r-- | src/shared/hashmap.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/shared/hashmap.c b/src/shared/hashmap.c index 9f7db34397..4ea1a0f4cb 100644 --- a/src/shared/hashmap.c +++ b/src/shared/hashmap.c @@ -373,13 +373,10 @@ int hashmap_put(Hashmap *h, const void *key, void *value) { assert(h); hash = h->hash_func(key) % NBUCKETS; - e = hash_scan(h, hash, key); if (e) { - if (e->value == value) return 0; - return -EEXIST; } @@ -534,7 +531,6 @@ int hashmap_remove_and_replace(Hashmap *h, const void *old_key, const void *new_ return -ENOENT; new_hash = h->hash_func(new_key) % NBUCKETS; - if ((k = hash_scan(h, new_hash, new_key))) if (e != k) remove_entry(h, k); |