projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e2a51d
)
shared/hashmap: trivial style updates
author
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Thu, 21 Feb 2019 09:04:23 +0000
(10:04 +0100)
committer
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Thu, 21 Feb 2019 11:04:27 +0000
(12:04 +0100)
src/basic/hashmap.c
patch
|
blob
|
history
diff --git
a/src/basic/hashmap.c
b/src/basic/hashmap.c
index
66e9e00
..
24bdc33
100644
(file)
--- a/
src/basic/hashmap.c
+++ b/
src/basic/hashmap.c
@@
-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)
;
}