diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2020-06-30 12:02:14 +0200 |
---|---|---|
committer | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2020-07-03 18:03:47 +0200 |
commit | 3a92f85f2121bb76061758e2830a5a1572729bcf (patch) | |
tree | 6eef8e0ae1f22e82c88e5ab1cd9b37eb607f5ae0 /lib/efi_loader | |
parent | 7a373e54350b8cbc27b402d881a07e29a6107c0d (diff) | |
download | u-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.c | 2 |
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: |