From: Tim Wiederhake Date: Mon, 1 Feb 2021 12:42:00 +0000 (+0100) Subject: qemu_tpm: Fix indentation in qemuTPMEmulatorBuildCommand X-Git-Tag: v7.1.0-rc1~340 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2870d99f1b3fe386cf35c145d72a960c84efcad6;p=thirdparty%2Flibvirt.git qemu_tpm: Fix indentation in qemuTPMEmulatorBuildCommand This was found by clang-tidy's "readability-misleading-indentation" check. Signed-off-by: Tim Wiederhake Reviewed-by: Peter Krempa --- diff --git a/src/qemu/qemu_tpm.c b/src/qemu/qemu_tpm.c index 532e0912bd..f94cad8230 100644 --- a/src/qemu/qemu_tpm.c +++ b/src/qemu/qemu_tpm.c @@ -600,9 +600,11 @@ qemuTPMEmulatorBuildCommand(virDomainTPMDefPtr tpm, } pwdfile_fd = qemuTPMSetupEncryption(tpm->data.emulator.secretuuid, cmd); - if (pwdfile_fd) - migpwdfile_fd = qemuTPMSetupEncryption(tpm->data.emulator.secretuuid, - cmd); + if (pwdfile_fd) { + migpwdfile_fd = qemuTPMSetupEncryption(tpm->data.emulator.secretuuid, + cmd); + } + if (pwdfile_fd < 0 || migpwdfile_fd < 0) goto error;