]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sd-bus: voidify bus_match_remove call
authorLuca Boccassi <luca.boccassi@gmail.com>
Wed, 8 Jul 2026 09:54:00 +0000 (10:54 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Wed, 8 Jul 2026 09:54:04 +0000 (10:54 +0100)
It cannot fail, just returns 0 or 1 for not found/found

CID#1663675

src/libsystemd/sd-bus/bus-slot.c

index 4a9483489170f0b1e297f4c754099f86af7d5131..43427119ed07fc7a36667cd8a8e91fa2498213fc 100644 (file)
@@ -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);