mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-21 18:03:41 +03:00
sd-event: drop unnecessary "else"
This commit is contained in:
parent
1753d30215
commit
7e2bf71ca3
@ -2983,8 +2983,8 @@ static int event_arm_timer(
|
||||
|
||||
if (!d->needs_rearm)
|
||||
return 0;
|
||||
else
|
||||
d->needs_rearm = false;
|
||||
|
||||
d->needs_rearm = false;
|
||||
|
||||
a = prioq_peek(d->earliest);
|
||||
if (!a || a->enabled == SD_EVENT_OFF || time_event_source_next(a) == USEC_INFINITY) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user