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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user