]> xenbits.xensource.com Git - libvirt.git/commit
qemu_tpm, security, tests: change 'switch' clauses for 'if'
authorDaniel Henrique Barboza <danielhb413@gmail.com>
Wed, 10 Jun 2020 18:11:46 +0000 (15:11 -0300)
committerJán Tomko <jtomko@redhat.com>
Tue, 23 Jun 2020 15:27:50 +0000 (17:27 +0200)
commitdb45fb49e8475152136ffafa7b06aab6f9240cf9
tree718ceb24578a38b0d6f89961d96299376d84917d
parent9c77b617e6071ce0b6092cbaa8637beca1e3f08e
qemu_tpm, security, tests: change 'switch' clauses for 'if'

This trivial rework is aimed to reduce the amount of line changes
made by the next patch, when 'def->tpm' will become a 'def->tpms'
array.

Instead of using a 'switch' where only the VIR_DOMAIN_TPM_TYPE_EMULATOR
label does something, use an 'if' clause instead.

Tested-by: Satheesh Rajendran <sathnaga@linux.vnet.ibm.com>
Reviewed-by: Stefan Berger <stefanb@linux.ibm.com>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Signed-off-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_tpm.c
src/security/security_selinux.c
src/security/virt-aa-helper.c
tests/qemuxml2argvtest.c