summaryrefslogtreecommitdiff
path: root/lib/efi_selftest/efi_selftest_variables.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2024-05-01 19:39:45 -0600
committerTom Rini <trini@konsulko.com>2024-05-01 19:39:45 -0600
commit3132b7982af501f7f62f7b2c7f89d00205de33d1 (patch)
treecd5b5ae2fd542e757e052f7beb6407bbf07ed8b5 /lib/efi_selftest/efi_selftest_variables.c
parentff0de1f0557ed7d2dab47ba976a37347a1fdc432 (diff)
parent8745f13fe102968f58a9e2e5f69ad153a675b59c (diff)
Merge tag 'efi-2024-07-rc2' of https://source.denx.de/u-boot/custodians/u-boot-efi
Pull request efi-2024-07-rc2 Documentation: * correct description of 'env print -e' UEFI: * remove superfluous efi_restore_gd after EFI_CALL * terminate efidebug test bootmgr early on error * do not install device-tree if bootmgr fails * pass GUID by address to efi_dp_from_lo * remove dead code in efi_var_mem_init() * enable QueryVariableInfo at runtime for file backed variables
Diffstat (limited to 'lib/efi_selftest/efi_selftest_variables.c')
-rw-r--r--lib/efi_selftest/efi_selftest_variables.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/lib/efi_selftest/efi_selftest_variables.c b/lib/efi_selftest/efi_selftest_variables.c
index 39ad03a090d..3d5f38c6897 100644
--- a/lib/efi_selftest/efi_selftest_variables.c
+++ b/lib/efi_selftest/efi_selftest_variables.c
@@ -51,15 +51,12 @@ static int execute(void)
u16 varname[EFI_ST_MAX_VARNAME_SIZE];
int flag;
efi_guid_t guid;
- u64 max_storage, rem_storage, max_size;
+ int test_ret;
- ret = runtime->query_variable_info(EFI_VARIABLE_BOOTSERVICE_ACCESS,
- &max_storage, &rem_storage,
- &max_size);
- if (ret != EFI_SUCCESS) {
- efi_st_todo("QueryVariableInfo failed\n");
- } else if (!max_storage || !rem_storage || !max_size) {
- efi_st_error("QueryVariableInfo: wrong info\n");
+ test_ret = efi_st_query_variable_common(runtime,
+ EFI_VARIABLE_BOOTSERVICE_ACCESS);
+ if (test_ret != EFI_ST_SUCCESS) {
+ efi_st_error("QueryVariableInfo failed\n");
return EFI_ST_FAILURE;
}
/* Set variable 0 */