shared/hashmap: trivial style updates
This commit is contained in:
parent
5e2a51d588
commit
b61658fd9a
|
@ -1536,7 +1536,6 @@ void *internal_hashmap_first_key_and_value(HashmapBase *h, bool remove, void **r
|
|||
}
|
||||
|
||||
unsigned internal_hashmap_size(HashmapBase *h) {
|
||||
|
||||
if (!h)
|
||||
return 0;
|
||||
|
||||
|
@ -1544,7 +1543,6 @@ unsigned internal_hashmap_size(HashmapBase *h) {
|
|||
}
|
||||
|
||||
unsigned internal_hashmap_buckets(HashmapBase *h) {
|
||||
|
||||
if (!h)
|
||||
return 0;
|
||||
|
||||
|
@ -1904,8 +1902,7 @@ IteratedCache *iterated_cache_free(IteratedCache *cache) {
|
|||
if (cache) {
|
||||
free(cache->keys.ptr);
|
||||
free(cache->values.ptr);
|
||||
free(cache);
|
||||
}
|
||||
|
||||
return NULL;
|
||||
return mfree(cache);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue