shared/hashmap: trivial style updates
This commit is contained in:
+1
-4
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user