vl: remove unnecessary duplicate call to tpm_cleanup
commitbc82585a8fd5d38e7c2402999a7ccc9a97d762c9
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 16 Jun 2016 12:25:04 +0000 (16 14:25 +0200)
committerMichael Tokarev <mjt@gandalf>
Tue, 13 Sep 2016 15:12:34 +0000 (13 18:12 +0300)
tree2cbb5544a8e6d4132a19ad19be67552661ed23c2
parent39cba610a78ad0d9dc24e6124a945a75e8f91b3d
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>
vl.c