Skip to content

Commit

Permalink
sd-event: drop unnecessary "else"
Browse files Browse the repository at this point in the history
  • Loading branch information
yuwata committed Jun 14, 2021
1 parent 1753d30 commit 7e2bf71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libsystemd/sd-event/sd-event.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 7e2bf71

Please sign in to comment.