diff options
author | Lennart Poettering <lennart@poettering.net> | 2021-05-21 18:27:04 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2021-05-22 11:00:00 +0200 |
commit | 887b2019b67d25c5c91a8118655eee87b9f4af99 (patch) | |
tree | 97d3e1adb8e68b37d5828eca6b8546f8e43cda62 /src/shared/sleep-config.c | |
parent | sleep: can_sleep_state() + can_sleep_disk() don#t return plain booleans (diff) | |
download | systemd-887b2019b67d25c5c91a8118655eee87b9f4af99.tar.xz systemd-887b2019b67d25c5c91a8118655eee87b9f4af99.zip |
sleep: don't check for EADV
EADV is not generated anymore since
6d176522f5480ea9e9a83de5ef5ea5e0d95b79cb, let's hence not check for it
anymore.
Diffstat (limited to '')
-rw-r--r-- | src/shared/sleep-config.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/sleep-config.c b/src/shared/sleep-config.c index b02dd5467d..645b7e242e 100644 --- a/src/shared/sleep-config.c +++ b/src/shared/sleep-config.c @@ -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; } |