summaryrefslogtreecommitdiff
path: root/lib/efi_loader
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2020-06-30 12:02:14 +0200
committerHeinrich Schuchardt <xypron.glpk@gmx.de>2020-07-03 18:03:47 +0200
commit3a92f85f2121bb76061758e2830a5a1572729bcf (patch)
tree6eef8e0ae1f22e82c88e5ab1cd9b37eb607f5ae0 /lib/efi_loader
parent7a373e54350b8cbc27b402d881a07e29a6107c0d (diff)
downloadu-boot-3a92f85f2121bb76061758e2830a5a1572729bcf.tar.gz
u-boot-3a92f85f2121bb76061758e2830a5a1572729bcf.tar.bz2
u-boot-3a92f85f2121bb76061758e2830a5a1572729bcf.zip
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>
Diffstat (limited to 'lib/efi_loader')
-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 4d49fd60dc..efaba869ef 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: