From fc4658bc0abb811d1abc294bc56d36bd6a1596d1 Mon Sep 17 00:00:00 2001 From: Luca Boccassi Date: Wed, 8 Jul 2026 10:54:00 +0100 Subject: [PATCH] sd-bus: voidify bus_match_remove call It cannot fail, just returns 0 or 1 for not found/found CID#1663675 (cherry picked from commit 6248f1b7742ca112b476c0ab2af83d91a35f42c8) --- src/libsystemd/sd-bus/bus-slot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsystemd/sd-bus/bus-slot.c b/src/libsystemd/sd-bus/bus-slot.c index 4a948348917..43427119ed0 100644 --- a/src/libsystemd/sd-bus/bus-slot.c +++ b/src/libsystemd/sd-bus/bus-slot.c @@ -76,7 +76,7 @@ void bus_slot_disconnect(sd_bus_slot *slot, bool unref) { } slot->bus->match_callbacks_modified = true; - bus_match_remove(&slot->bus->match_callbacks, &slot->match_callback); + (void) bus_match_remove(&slot->bus->match_callbacks, &slot->match_callback); slot->match_callback.match_string = mfree(slot->match_callback.match_string);