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-24 15:20:49 +01:00
parent bc5eb90015
commit 83fe0be170
+2 -4
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