On a Wednesday in 2020, Daniel Henrique Barboza wrote:
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 <sathn...@linux.vnet.ibm.com>
Reviewed-by: Stefan Berger <stef...@linux.ibm.com>
Signed-off-by: Daniel Henrique Barboza <danielhb...@gmail.com>
---
src/qemu/qemu_tpm.c             | 44 +++++----------------------------
src/security/security_selinux.c | 16 ++----------
src/security/virt-aa-helper.c   |  7 +-----
tests/qemuxml2argvtest.c        |  7 +-----
4 files changed, 10 insertions(+), 64 deletions(-)


Reviewed-by: Ján Tomko <jto...@redhat.com>

Jano

Attachment: signature.asc
Description: PGP signature

Reply via email to