From: Zbigniew Jędrzejewski-Szmek Date: Mon, 19 Dec 2022 10:19:18 +0000 (+0100) Subject: basic/hashmap: add comment X-Git-Tag: v253-rc1~244^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e8d2cb0f341cf3a1fbe0f119ead4859fda4b4de9;p=thirdparty%2Fsystemd.git basic/hashmap: add comment Coverity complains that the check is suspicious. Add a comment to help the reader. --- diff --git a/src/basic/hashmap.c b/src/basic/hashmap.c index de7d16c3970..cdf7db612c8 100644 --- a/src/basic/hashmap.c +++ b/src/basic/hashmap.c @@ -774,7 +774,7 @@ static struct HashmapBase* hashmap_base_new(const struct hash_ops *hash_ops, enu HashmapBase *h; const struct hashmap_type_info *hi = &hashmap_type_info[type]; - bool use_pool = mempool_enabled && mempool_enabled(); + bool use_pool = mempool_enabled && mempool_enabled(); /* mempool_enabled is a weak symbol */ h = use_pool ? mempool_alloc0_tile(hi->mempool) : malloc0(hi->head_size); if (!h)