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:
+2
-4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user