mirror of
https://xff.cz/git/u-boot/
synced 2025-09-28 05:51:17 +02:00
efi_selftest: rename setup_ok
The variable name setup_ok might suggest a boolean with true indicating OK. Let's avoid the misleading name. %s/setup_ok/setup_status/g Suggested-by: Simon Glass <sjg@chromium.org> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
committed by
Alexander Graf
parent
41b0587981
commit
3c2c54ca81
@@ -18,7 +18,7 @@ static const struct efi_boot_services *boottime;
|
|||||||
static const struct efi_runtime_services *runtime;
|
static const struct efi_runtime_services *runtime;
|
||||||
static efi_handle_t handle;
|
static efi_handle_t handle;
|
||||||
static u16 reset_message[] = L"Selftest completed";
|
static u16 reset_message[] = L"Selftest completed";
|
||||||
static int *setup_ok;
|
static int *setup_status;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Exit the boot services.
|
* Exit the boot services.
|
||||||
@@ -199,8 +199,8 @@ void efi_st_do_tests(const u16 *testname, unsigned int phase,
|
|||||||
if (test->phase != phase)
|
if (test->phase != phase)
|
||||||
continue;
|
continue;
|
||||||
if (steps & EFI_ST_SETUP)
|
if (steps & EFI_ST_SETUP)
|
||||||
setup_ok[i] = setup(test, failures);
|
setup_status[i] = setup(test, failures);
|
||||||
if (steps & EFI_ST_EXECUTE && setup_ok[i] == EFI_ST_SUCCESS)
|
if (steps & EFI_ST_EXECUTE && setup_status[i] == EFI_ST_SUCCESS)
|
||||||
execute(test, failures);
|
execute(test, failures);
|
||||||
if (steps & EFI_ST_TEARDOWN)
|
if (steps & EFI_ST_TEARDOWN)
|
||||||
teardown(test, failures);
|
teardown(test, failures);
|
||||||
@@ -278,7 +278,7 @@ efi_status_t EFIAPI efi_selftest(efi_handle_t image_handle,
|
|||||||
ret = boottime->allocate_pool(EFI_RUNTIME_SERVICES_DATA, sizeof(int) *
|
ret = boottime->allocate_pool(EFI_RUNTIME_SERVICES_DATA, sizeof(int) *
|
||||||
ll_entry_count(struct efi_unit_test,
|
ll_entry_count(struct efi_unit_test,
|
||||||
efi_unit_test),
|
efi_unit_test),
|
||||||
(void **)&setup_ok);
|
(void **)&setup_status);
|
||||||
if (ret != EFI_SUCCESS) {
|
if (ret != EFI_SUCCESS) {
|
||||||
efi_st_error("Allocate pool failed\n");
|
efi_st_error("Allocate pool failed\n");
|
||||||
return ret;
|
return ret;
|
||||||
|
Reference in New Issue
Block a user