mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-03-12 08:58:20 +03:00
sleep: don't log duplicate error
write_resume_config() logs error on its own. (cherry picked from commit fe33920c2aee9fcde7c4602633f41b6ce1858870)
This commit is contained in:
parent
78d2f76f8f
commit
8094ac00a2
@ -253,10 +253,8 @@ static int execute(
|
||||
return r;
|
||||
|
||||
r = write_resume_config(hibernation_device.devno, hibernation_device.offset, hibernation_device.path);
|
||||
if (r < 0) {
|
||||
log_error_errno(r, "Failed to write hibernation device to /sys/power/resume or /sys/power/resume_offset: %m");
|
||||
if (r < 0)
|
||||
goto fail;
|
||||
}
|
||||
}
|
||||
|
||||
r = write_mode(sleep_config->modes[operation]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user