diff --git a/man/systemd-analyze.xml b/man/systemd-analyze.xml
index 4f7248cd0c..5caaa09aa4 100644
--- a/man/systemd-analyze.xml
+++ b/man/systemd-analyze.xml
@@ -322,9 +322,8 @@
Invoke unit generators, see
systemd.generator7.
- Some generators require root privileges. When run under a
- normal users, enabling generators will generally result in
- some warnings.
+ Some generators require root privileges. Under a normal user, running with
+ generators enabled will generally result in some warnings.
diff --git a/src/basic/hashmap.c b/src/basic/hashmap.c
index 32be96455d..d0873f7ae5 100644
--- a/src/basic/hashmap.c
+++ b/src/basic/hashmap.c
@@ -1900,8 +1900,6 @@ int set_put_strsplit(Set *s, const char *v, const char *separators, ExtractFlags
/* expand the cachemem if needed, return true if newly (re)activated. */
static int cachemem_maintain(CacheMem *mem, unsigned size) {
- int r = false;
-
assert(mem);
if (!GREEDY_REALLOC(mem->ptr, mem->n_allocated, size)) {
@@ -1909,10 +1907,12 @@ static int cachemem_maintain(CacheMem *mem, unsigned size) {
return -ENOMEM;
}
- if (!mem->active)
- mem->active = r = true;
+ if (!mem->active) {
+ mem->active = true;
+ return true;
+ }
- return r;
+ return false;
}
int iterated_cache_get(IteratedCache *cache, const void ***res_keys, const void ***res_values, unsigned *res_n_entries) {