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:
parent
bc5eb90015
commit
83fe0be170
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user