]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemuDomainAttachHostPCIDevice: Fix coding style
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 25 Jan 2022 09:48:36 +0000 (10:48 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 25 Jan 2022 11:38:40 +0000 (12:38 +0100)
Our coding style requires that a body of an if() longer than two
lines is wrapped in a curly braces. There's one offender in
qemuDomainAttachHostPCIDevice(). Fortunately, there was no
functional problem because one of the lines is a comment.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_hotplug.c

index 22acbd085267782077b82001e8094560a1c193db..f36de2385a209cdf051eaaea4f31e91795dc03b8 100644 (file)
@@ -1663,9 +1663,10 @@ qemuDomainAttachHostPCIDevice(virQEMUDriver *driver,
 
     qemuAssignDeviceHostdevAlias(vm->def, &info->alias, -1);
 
-    if (qemuDomainIsPSeries(vm->def))
+    if (qemuDomainIsPSeries(vm->def)) {
         /* Isolation groups are only relevant for pSeries guests */
         qemuDomainFillDeviceIsolationGroup(vm->def, &dev);
+    }
 
     if (qemuDomainEnsurePCIAddress(vm, &dev) < 0)
         goto error;