diff mbox series

[v2,3/7] remove irrelevant sd_booted values

Message ID 20231025055142.54505-4-felix.moessbauer@siemens.com
State Accepted
Headers show
Series Rework socket creation to better integrate with systemd | expand

Commit Message

Felix Moessbauer Oct. 25, 2023, 5:51 a.m. UTC
Explicit runtime checks if the system is booted with systemd are
discouraged by systemd. All sd_* functions also behave correctly when
not booted with systemd. Hence, remove these were not necessary.

Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
Acked-by: Stefano Babic <stefano.babic@swupdate.org>
---
 core/swupdate.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/core/swupdate.c b/core/swupdate.c
index 45fa325..6f9938e 100644
--- a/core/swupdate.c
+++ b/core/swupdate.c
@@ -970,9 +970,7 @@  int main(int argc, char **argv)
 	}
 
 #ifdef CONFIG_SYSTEMD
-	if (sd_booted()) {
-		sd_notify(0, "READY=1");
-	}
+	sd_notify(0, "READY=1");
 #endif
 
 	/*