aboutsummaryrefslogtreecommitdiff
path: root/lib/efi_selftest/efi_selftest_events.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2019-02-13 07:12:29 -0500
committerTom Rini <trini@konsulko.com>2019-02-13 07:12:29 -0500
commit63f7e3fca391a50a499fed828fe16325fdee45f3 (patch)
tree6214d5fe9a24d21b9a729a1bda3fdd22e442d298 /lib/efi_selftest/efi_selftest_events.c
parentb1b1bab7f92b838a252ab977f56d9c3584c14fb7 (diff)
parent823c233b7ab95169ea4428b2821b72b8887b47b0 (diff)
Merge tag 'signed-efi-next' of git://github.com/agraf/u-boot
Patch queue for efi - 2019-02-13 Goodness this time around: - HII protocol, finally allows us to run the UEFI Shell! (experimantal, disabled by default) - efi selftest now available on Cortex-M - NVMe support for distro boot - Lots of code cleanup
Diffstat (limited to 'lib/efi_selftest/efi_selftest_events.c')
-rw-r--r--lib/efi_selftest/efi_selftest_events.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/efi_selftest/efi_selftest_events.c b/lib/efi_selftest/efi_selftest_events.c
index ed99a53804..1077cbdf9e 100644
--- a/lib/efi_selftest/efi_selftest_events.c
+++ b/lib/efi_selftest/efi_selftest_events.c
@@ -147,20 +147,20 @@ static int execute(void)
return EFI_ST_FAILURE;
}
ret = boottime->set_timer(event_notify, EFI_TIMER_STOP, 0);
- if (index != 0) {
+ if (ret != EFI_SUCCESS) {
efi_st_error("Could not cancel timer\n");
return EFI_ST_FAILURE;
}
/* Set 10 ms timer */
timer_ticks = 0;
ret = boottime->set_timer(event_notify, EFI_TIMER_RELATIVE, 100000);
- if (index != 0) {
+ if (ret != EFI_SUCCESS) {
efi_st_error("Could not set timer\n");
return EFI_ST_FAILURE;
}
/* Set 100 ms timer */
ret = boottime->set_timer(event_wait, EFI_TIMER_PERIODIC, 1000000);
- if (index != 0) {
+ if (ret != EFI_SUCCESS) {
efi_st_error("Could not set timer\n");
return EFI_ST_FAILURE;
}