summaryrefslogtreecommitdiffstats
path: root/src/shared/sleep-config.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2021-05-21 18:27:04 +0200
committerLennart Poettering <lennart@poettering.net>2021-05-22 11:00:00 +0200
commit887b2019b67d25c5c91a8118655eee87b9f4af99 (patch)
tree97d3e1adb8e68b37d5828eca6b8546f8e43cda62 /src/shared/sleep-config.c
parentsleep: can_sleep_state() + can_sleep_disk() don#t return plain booleans (diff)
downloadsystemd-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.c2
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;
}