mirror of
https://github.com/systemd/systemd.git
synced 2026-08-11 01:25:28 +00:00
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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user