efi_loader: Clean up tcg2 once in case of failure

efi_init_event_log() calls tcg2_uninit() in case of failure.
We can skip that since the function is called on efi_tcg2_register()
which also cleans up if an error occurs

Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
Ilias Apalodimas 2021-05-10 21:15:08 +03:00 committed by Heinrich Schuchardt
parent bc3f465181
commit b76edf6b07
1 changed files with 0 additions and 4 deletions

View File

@ -1053,12 +1053,8 @@ static efi_status_t efi_init_event_log(void)
event_log.last_event_size = event_log.pos;
ret = create_final_event();
if (ret != EFI_SUCCESS)
goto out;
return EFI_SUCCESS;
out:
tcg2_uninit();
return ret;
}