b677e7
From 9faf4d1a39b7fc8c9f986a808e1c0d3ed9b44357 Mon Sep 17 00:00:00 2001
b677e7
From: Yu Watanabe <watanabe.yu+github@gmail.com>
b677e7
Date: Tue, 15 Jun 2021 00:44:04 +0900
b677e7
Subject: [PATCH] sd-event: drop unnecessary "else"
b677e7
b677e7
(cherry picked from commit 7e2bf71ca3638e36ee33215ceee386ba8013da6d)
b677e7
b677e7
Related: #1968528
b677e7
---
b677e7
 src/libsystemd/sd-event/sd-event.c | 4 ++--
b677e7
 1 file changed, 2 insertions(+), 2 deletions(-)
b677e7
b677e7
diff --git a/src/libsystemd/sd-event/sd-event.c b/src/libsystemd/sd-event/sd-event.c
b677e7
index 3e77f4e810..2b0b76aa1c 100644
b677e7
--- a/src/libsystemd/sd-event/sd-event.c
b677e7
+++ b/src/libsystemd/sd-event/sd-event.c
b677e7
@@ -2883,8 +2883,8 @@ static int event_arm_timer(
b677e7
 
b677e7
         if (!d->needs_rearm)
b677e7
                 return 0;
b677e7
-        else
b677e7
-                d->needs_rearm = false;
b677e7
+
b677e7
+        d->needs_rearm = false;
b677e7
 
b677e7
         a = prioq_peek(d->earliest);
b677e7
         if (!a || a->enabled == SD_EVENT_OFF || time_event_source_next(a) == USEC_INFINITY) {