mirror of
https://github.com/systemd/systemd
synced 2024-07-24 11:44:41 +00: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…
Reference in a new issue