]> xenbits.xensource.com Git - libvirt.git/commit
conf: Drop needless setting of VIR_DOMAIN_TPM_VERSION_DEFAULT
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 18 Jul 2022 07:58:38 +0000 (09:58 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 1 Aug 2022 15:35:51 +0000 (17:35 +0200)
commit598ffbdd41260fda474bea0370f11f7dec9f72bb
tree701e4d99a8555ec013dc47c93b6b22f77255152c
parentd5712c54a6dc42e06e8c8679b3af59db75845116
conf: Drop needless setting of VIR_DOMAIN_TPM_VERSION_DEFAULT

In previous commit the VIR_DOMAIN_TPM_VERSION_DEFAULT value was
made just an alias to value of 0. And since all newly allocated
memory is zeroed out (due to use of g_new0()), the def->version
inside of virDomainTPMDefParseXML() is also 0 and thus there is
no need to set it explicitly.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
src/conf/domain_conf.c