]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
efi_loader: GetTime() must return EFI_UNSUPPORTED
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Thu, 13 Jun 2019 16:42:40 +0000 (18:42 +0200)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Fri, 14 Jun 2019 17:18:40 +0000 (19:18 +0200)
If the GetTime() runtime service is not supported, EFI_UNSUPPORTED has to
be returned.

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

index 0c57d0abd76126ca4406fcb736893bc75214ea49..40fdc0ea9286945a292d38080dd97a80671bf59d 100644 (file)
@@ -366,8 +366,7 @@ efi_status_t __weak __efi_runtime EFIAPI efi_get_time(
                        struct efi_time *time,
                        struct efi_time_cap *capabilities)
 {
-       /* Nothing we can do */
-       return EFI_DEVICE_ERROR;
+       return EFI_UNSUPPORTED;
 }
 
 /**