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 6248f1b774)
This commit is contained in:
Luca Boccassi
2026-07-08 10:54:00 +01:00
parent 9ec5d452f2
commit fc4658bc0a

View 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);