mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
vl: remove unnecessary duplicate call to tpm_cleanup
tpm_cleanup is called from main() and also registered with atexit from tpm_init. The function only visits the tpm_backends linked list, and the atexit registration happens right after tpm_init fills in the list from -tpmdev options. Therefore, the direct call is unnecessary. Remove it. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
This commit is contained in:
parent
39cba610a7
commit
bc82585a8f
1 changed files with 0 additions and 3 deletions
3
vl.c
3
vl.c
|
@ -4620,9 +4620,6 @@ int main(int argc, char **argv, char **envp)
|
|||
bdrv_close_all();
|
||||
pause_all_vcpus();
|
||||
res_free();
|
||||
#ifdef CONFIG_TPM
|
||||
tpm_cleanup();
|
||||
#endif
|
||||
|
||||
/* vhost-user must be cleaned up before chardevs. */
|
||||
net_cleanup();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue