[libvirt PATCH v2 03/10] qemu_tpm: Fix indentation in qemuTPMEmulatorBuildCommand

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This was found by clang-tidy's "readability-misleading-indentation"
check.

Signed-off-by: Tim Wiederhake <twiederh@xxxxxxxxxx>
Reviewed-by: Peter Krempa <pkrempa@xxxxxxxxxx>
---
 src/qemu/qemu_tpm.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

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;
 
-- 
2.26.2




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux