efi_loader: rtc_mktime() called twice
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Tue, 30 Jun 2020 10:02:14 +0000 (12:02 +0200)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Fri, 3 Jul 2020 16:03:47 +0000 (18:03 +0200)
Don't call rtc_mktime() twice with the same argument in
efi_variable_authenticate().

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
lib/efi_loader/efi_variable.c

index 4d49fd6..efaba86 100644 (file)
@@ -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: