daandemeyer / rpms / systemd

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