diff options
author | Lukas Nykryn <lnykryn@redhat.com> | 2012-08-23 12:21:55 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2012-08-23 13:53:30 +0200 |
commit | 9f89986d2beb2c45436cc9e5b4da8bd4a79f100c (patch) | |
tree | e338229da6f3bd3ec4763d455386d76afc99edb6 /src | |
parent | 403a56bf813014b111640ee804f6b1aa463ca15a (diff) |
hashmap: hashmap_contains does not need hashmap_entry
Diffstat (limited to 'src')
-rw-r--r-- | src/shared/hashmap.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/shared/hashmap.c b/src/shared/hashmap.c index be37a3659d..0a044b85ad 100644 --- a/src/shared/hashmap.c +++ b/src/shared/hashmap.c @@ -380,14 +380,13 @@ void* hashmap_get(Hashmap *h, const void *key) { bool hashmap_contains(Hashmap *h, const void *key) { unsigned hash; - struct hashmap_entry *e; if (!h) return false; hash = h->hash_func(key) % NBUCKETS; - if (!(e = hash_scan(h, hash, key))) + if (!hash_scan(h, hash, key)) return false; return true; |