sleep: don't check for EADV

EADV is not generated anymore since
6d176522f5, let's hence not check for it
anymore.
This commit is contained in:
Lennart Poettering
2021-05-22 11:00:00 +02:00
parent 61dc84817e
commit 887b2019b6
+1 -1
View File
@@ -607,7 +607,7 @@ static bool can_s2h(const SleepConfig *sleep_config) {
for (size_t i = 0; i < ELEMENTSOF(operations); i++) {
r = can_sleep_internal(sleep_config, operations[i], false);
if (IN_SET(r, 0, -ENOSPC, -EADV)) {
if (IN_SET(r, 0, -ENOSPC)) {
log_debug("Unable to %s system.", sleep_operation_to_string(operations[i]));
return false;
}