]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu_tpm: Fix indentation in qemuTPMEmulatorBuildCommand
authorTim Wiederhake <twiederh@redhat.com>
Mon, 1 Feb 2021 12:42:00 +0000 (13:42 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 2 Feb 2021 14:00:55 +0000 (15:00 +0100)
This was found by clang-tidy's "readability-misleading-indentation"
check.

Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
src/qemu/qemu_tpm.c

index 532e0912bd4878f2e3a027fafa8a9e21dd0cbc47..f94cad8230b7439b9906cff8b6cbab6b58a0a6c2 100644 (file)
@@ -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;