From: Mike Yuan Date: Mon, 1 Jan 2024 09:15:23 +0000 (+0800) Subject: bus-wait-for-units: use hashmap_remove_value where appropriate X-Git-Tag: v256-rc1~1357^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a490aa5a2da20610c180415c99d2d8103da49dd0;p=thirdparty%2Fsystemd.git bus-wait-for-units: use hashmap_remove_value where appropriate --- diff --git a/src/shared/bus-wait-for-units.c b/src/shared/bus-wait-for-units.c index 0dd2a295dd9..c32b0a1e14a 100644 --- a/src/shared/bus-wait-for-units.c +++ b/src/shared/bus-wait-for-units.c @@ -63,7 +63,7 @@ static WaitForItem *wait_for_item_free(WaitForItem *item) { log_debug_errno(r, "Failed to drop reference to unit %s, ignoring: %m", item->bus_path); } - assert_se(hashmap_remove(item->parent->items, item->bus_path) == item); + assert_se(hashmap_remove_value(item->parent->items, item->bus_path, item)); if (item->parent->current == item) item->parent->current = NULL;