diff options
author | Lennart Poettering <lennart@poettering.net> | 2022-12-23 18:49:02 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2022-12-23 23:26:26 +0100 |
commit | 8656f4a6ae22f021311dddbea3c8e1b9f517e843 (patch) | |
tree | 6a702cabd7496444314a65efe43e3f742d8544d4 /src/libsystemd/sd-event | |
parent | Merge pull request #25849 from poettering/repart-loop (diff) | |
download | systemd-8656f4a6ae22f021311dddbea3c8e1b9f517e843.tar.xz systemd-8656f4a6ae22f021311dddbea3c8e1b9f517e843.zip |
prioq: make prioq_reshuffle() void
We never use the return value, and it's confusing and kinda pointless
what we return there.
Hence drop it.
Originally noticed by: tristone13th <tristone13th@outlook.com>
Alternative to: #25810
Diffstat (limited to 'src/libsystemd/sd-event')
-rw-r--r-- | src/libsystemd/sd-event/sd-event.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/libsystemd/sd-event/sd-event.c b/src/libsystemd/sd-event/sd-event.c index ce1104b073..6c15bc3ba7 100644 --- a/src/libsystemd/sd-event/sd-event.c +++ b/src/libsystemd/sd-event/sd-event.c @@ -3776,12 +3776,9 @@ static int event_prepare(sd_event *e) { break; s->prepare_iteration = e->iteration; - r = prioq_reshuffle(e->prepare, s, &s->prepare_index); - if (r < 0) - return r; + prioq_reshuffle(e->prepare, s, &s->prepare_index); assert(s->prepare); - s->dispatching = true; r = s->prepare(s, s->userdata); s->dispatching = false; |