From: Mike Yuan Date: Sat, 25 Nov 2023 07:07:17 +0000 (+0800) Subject: hibernate-util: return 1 for hibernation_is_safe only when all checks pass X-Git-Tag: v256-rc1~1564^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=232efdc5bd60be72d279a18052655a38fbc7547f;p=thirdparty%2Fsystemd.git hibernate-util: return 1 for hibernation_is_safe only when all checks pass The return value is currently not used, but let's correct this. --- diff --git a/src/shared/hibernate-util.c b/src/shared/hibernate-util.c index 3eb13d48f68..2ce3781cbf6 100644 --- a/src/shared/hibernate-util.c +++ b/src/shared/hibernate-util.c @@ -446,7 +446,7 @@ int hibernation_is_safe(void) { "Not running on EFI and resume= is not set. Hibernation is not safe."); if (bypass_space_check) - return true; + return 0; r = get_proc_meminfo_active(&active); if (r < 0)