daandemeyer / rpms / systemd

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