efi_loader: consistently use efi_uintn_t in boot services
[oweals/u-boot.git] / lib / efi_selftest / efi_selftest_events.c
index b2cdc150da256e84d85920f31149c3de08e1701e..ad9490bd250ca5e2a4ada2e1c0214331aeb59059 100644 (file)
@@ -108,7 +108,7 @@ static int teardown(void)
  */
 static int execute(void)
 {
-       size_t index;
+       efi_uintn_t index;
        efi_status_t ret;
 
        /* Set 10 ms timer */
@@ -186,7 +186,7 @@ static int execute(void)
                return EFI_ST_FAILURE;
        }
        ret = boottime->set_timer(event_wait, EFI_TIMER_STOP, 0);
-       if (index != 0) {
+       if (ret != EFI_SUCCESS) {
                efi_st_error("Could not cancel timer\n");
                return EFI_ST_FAILURE;
        }