From a490aa5a2da20610c180415c99d2d8103da49dd0 Mon Sep 17 00:00:00 2001 From: Mike Yuan Date: Mon, 1 Jan 2024 17:15:23 +0800 Subject: [PATCH] bus-wait-for-units: use hashmap_remove_value where appropriate --- src/shared/bus-wait-for-units.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;