aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeinrich Schuchardt2020-06-30 12:02:14 +0200
committerHeinrich Schuchardt2020-07-03 18:03:47 +0200
commit3a92f85f2121bb76061758e2830a5a1572729bcf (patch)
tree6eef8e0ae1f22e82c88e5ab1cd9b37eb607f5ae0
parent7a373e54350b8cbc27b402d881a07e29a6107c0d (diff)
efi_loader: rtc_mktime() called twice
Don't call rtc_mktime() twice with the same argument in efi_variable_authenticate(). Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
-rw-r--r--lib/efi_loader/efi_variable.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/efi_loader/efi_variable.c b/lib/efi_loader/efi_variable.c
index 4d49fd60dcb..efaba869ef2 100644
--- a/lib/efi_loader/efi_variable.c
+++ b/lib/efi_loader/efi_variable.c
@@ -577,7 +577,7 @@ static efi_status_t efi_variable_authenticate(u16 *variable,
}
/* finished checking */
- *time = rtc_mktime(&tm);
+ *time = new_time;
ret = EFI_SUCCESS;
err: