mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-23 13:56:20 +00:00
efi_selftest: tpl unit test, check return values
For some API calls checks for the return values are missing. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
parent
1309a159ce
commit
44e7c62a82
1 changed files with 2 additions and 2 deletions
|
@ -151,7 +151,7 @@ static int execute(void)
|
||||||
return EFI_ST_FAILURE;
|
return EFI_ST_FAILURE;
|
||||||
}
|
}
|
||||||
ret = boottime->set_timer(event_notify, EFI_TIMER_STOP, 0);
|
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");
|
efi_st_error("Could not cancel timer\n");
|
||||||
return EFI_ST_FAILURE;
|
return EFI_ST_FAILURE;
|
||||||
}
|
}
|
||||||
|
@ -164,7 +164,7 @@ static int execute(void)
|
||||||
/* Set 10 ms timer */
|
/* Set 10 ms timer */
|
||||||
notification_count = 0;
|
notification_count = 0;
|
||||||
ret = boottime->set_timer(event_notify, EFI_TIMER_PERIODIC, 100000);
|
ret = boottime->set_timer(event_notify, EFI_TIMER_PERIODIC, 100000);
|
||||||
if (index != 0) {
|
if (ret != EFI_SUCCESS) {
|
||||||
efi_st_error("Could not set timer\n");
|
efi_st_error("Could not set timer\n");
|
||||||
return EFI_ST_FAILURE;
|
return EFI_ST_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue