From: Lennart Poettering Date: Fri, 21 May 2021 16:27:04 +0000 (+0200) Subject: sleep: don't check for EADV X-Git-Tag: v249-rc1~174^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=887b2019b67d25c5c91a8118655eee87b9f4af99;p=thirdparty%2Fsystemd.git sleep: don't check for EADV EADV is not generated anymore since 6d176522f5480ea9e9a83de5ef5ea5e0d95b79cb, let's hence not check for it anymore. --- diff --git a/src/shared/sleep-config.c b/src/shared/sleep-config.c index b02dd5467dc..645b7e242ee 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; }