1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-22 13:33:56 +03:00

core: drop pointless assert()

We checked this literally two lines earlier, no point in checking so
quickly again.
This commit is contained in:
Lennart Poettering 2021-04-14 16:02:35 +02:00 committed by Zbigniew Jędrzejewski-Szmek
parent 64e8e419d9
commit 5c9f1c68f0

View File

@ -1281,7 +1281,6 @@ static unsigned manager_dispatch_stop_when_unneeded_queue(Manager *m) {
while ((u = m->stop_when_unneeded_queue)) {
_cleanup_(sd_bus_error_free) sd_bus_error error = SD_BUS_ERROR_NULL;
assert(m->stop_when_unneeded_queue);
assert(u->in_stop_when_unneeded_queue);
LIST_REMOVE(stop_when_unneeded_queue, m->stop_when_unneeded_queue, u);