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.
This commit is contained in:
Mike Yuan
2023-12-05 16:52:19 +08:00
parent 26522a66a3
commit 232efdc5bd
+1 -1
View File
@@ -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)