summaryrefslogtreecommitdiff
path: root/src/shared/hashmap.c
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2013-08-15 15:15:36 +0200
committerKay Sievers <kay@vrfy.org>2013-08-15 17:51:02 +0200
commit585275000ccd522f403365236492dc924778d286 (patch)
treeeead860592ea944fc46468eb78001d3b1fcdfe58 /src/shared/hashmap.c
parent24a0282324d774b2f3c7b16070015598c1665ab8 (diff)
hashmap: remove empty lines
Diffstat (limited to 'src/shared/hashmap.c')
-rw-r--r--src/shared/hashmap.c4
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);