1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-12 09:17:44 +03:00

efivars: no need to convert ENOENT → ENODATA twice

read_efi_options_variable() already does this, don#t do it again.
This commit is contained in:
Lennart Poettering 2022-03-22 16:33:09 +01:00
parent bc5eb90015
commit 83fe0be170

View File

@ -439,9 +439,7 @@ int systemd_efi_options_efivarfs_if_newer(char **line) {
r = read_efi_options_variable(line);
if (r < 0)
log_warning_errno(r, "Failed to read SystemdOptions EFI variable: %m");
if (r == -ENOENT)
return -ENODATA;
return r;
return log_warning_errno(r, "Failed to read SystemdOptions EFI variable: %m");
return 0;
}
#endif