aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2019-07-12 12:55:32 +0200
committerHeinrich Schuchardt <xypron.glpk@gmx.de>2019-07-16 22:17:15 +0000
commit4e996a838c65a4cd319c32a62e1ff67c02ca969b (patch)
tree6abbed5682c15d20934eac0c655b0e195f2b3ab6 /lib
parenta35c33c0dc9ef9d2ab44cf677ac17a359c79b019 (diff)
downloadu-boot-4e996a838c65a4cd319c32a62e1ff67c02ca969b.zip
u-boot-4e996a838c65a4cd319c32a62e1ff67c02ca969b.tar.gz
u-boot-4e996a838c65a4cd319c32a62e1ff67c02ca969b.tar.bz2
efi_selftest: do not call CloseEvent() after ExitBootServices()
Boot services are not available after calling ExitBootServices(). So we should not try to close an event here. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/efi_selftest/efi_selftest_exitbootservices.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/lib/efi_selftest/efi_selftest_exitbootservices.c b/lib/efi_selftest/efi_selftest_exitbootservices.c
index f1a1360..4fecd1b 100644
--- a/lib/efi_selftest/efi_selftest_exitbootservices.c
+++ b/lib/efi_selftest/efi_selftest_exitbootservices.c
@@ -56,28 +56,6 @@ static int setup(const efi_handle_t handle,
}
/*
- * Tear down unit test.
- *
- * Close the event created in setup.
- *
- * @return: EFI_ST_SUCCESS for success
- */
-static int teardown(void)
-{
- efi_status_t ret;
-
- if (event_notify) {
- ret = boottime->close_event(event_notify);
- event_notify = NULL;
- if (ret != EFI_SUCCESS) {
- efi_st_error("could not close event\n");
- return EFI_ST_FAILURE;
- }
- }
- return EFI_ST_SUCCESS;
-}
-
-/*
* Execute unit test.
*
* Check that the notification function of the EVT_SIGNAL_EXIT_BOOT_SERVICES
@@ -107,5 +85,4 @@ EFI_UNIT_TEST(exitbootservices) = {
.phase = EFI_SETUP_BEFORE_BOOTTIME_EXIT,
.setup = setup,
.execute = execute,
- .teardown = teardown,
};