qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH] vl: remove unnecessary duplicate call to tpm_cleanu


From: Paolo Bonzini
Subject: [Qemu-devel] [PATCH] vl: remove unnecessary duplicate call to tpm_cleanup
Date: Thu, 16 Jun 2016 14:25:04 +0200

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 <address@hidden>
---
 vl.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/vl.c b/vl.c
index a7cb3b3..e05ded4 100644
--- a/vl.c
+++ b/vl.c
@@ -4631,9 +4631,6 @@ int main(int argc, char **argv, char **envp)
     bdrv_close_all();
     pause_all_vcpus();
     res_free();
-#ifdef CONFIG_TPM
-    tpm_cleanup();
-#endif
 
     return 0;
 }
-- 
2.5.5




reply via email to

[Prev in Thread] Current Thread [Next in Thread]