1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-28 21:47:38 +03:00

sleep: coding style fixlets

This commit is contained in:
Yu Watanabe 2022-11-14 02:44:13 +09:00 committed by Luca Boccassi
parent 4f58b656d9
commit 3c3f46013e

View File

@ -431,9 +431,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;
}