From 83fe0be1706c453f2f9d6be5259031a70021f610 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 22 Mar 2022 16:33:09 +0100 Subject: [PATCH] =?UTF-8?q?efivars:=20no=20need=20to=20convert=20ENOENT=20?= =?UTF-8?q?=E2=86=92=20ENODATA=20twice?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit read_efi_options_variable() already does this, don#t do it again. --- src/basic/efivars.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/basic/efivars.c b/src/basic/efivars.c index 470369c0cb..92b11cb2c5 100644 --- a/src/basic/efivars.c +++ b/src/basic/efivars.c @@ -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