naccyde / rpms / systemd

Forked from rpms/systemd a year ago
Clone
Blob Blame History Raw
From 583e9f1af5642643f11bc1cab26989a4f1dff776 Mon Sep 17 00:00:00 2001
From: Yu Watanabe <watanabe.yu+github@gmail.com>
Date: Mon, 14 Nov 2022 02:44:13 +0900
Subject: [PATCH] sleep: coding style fixlets

(cherry picked from commit 3c3f46013ed53aba1aad5b51844434713fa5a0e9)

Related: #2151612
---
 src/sleep/sleep.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/sleep/sleep.c b/src/sleep/sleep.c
index 0bbea9e856..bfd8ef3670 100644
--- a/src/sleep/sleep.c
+++ b/src/sleep/sleep.c
@@ -430,9 +430,9 @@ static int execute_s2h(const SleepConfig *sleep_config) {
                         return 0;
         } else {
                 r = custom_timer_suspend(sleep_config);
-                if(r < 0)
+                if (r < 0)
                         return log_debug_errno(r, "Suspend cycle with manual battery discharge rate estimation failed: %m");
-                if(r == 0)
+                if (r == 0)
                         /* manual wakeup */
                         return 0;
         }