From: Michal Privoznik Date: Tue, 25 Jan 2022 09:48:36 +0000 (+0100) Subject: qemuDomainAttachHostPCIDevice: Fix coding style X-Git-Tag: v8.1.0-rc1~316 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e185f03f39eb7a05262604a51101913119e5e4b4;p=thirdparty%2Flibvirt.git qemuDomainAttachHostPCIDevice: Fix coding style 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 --- diff --git a/src/qemu/qemu_hotplug.c b/src/qemu/qemu_hotplug.c index 22acbd0852..f36de2385a 100644 --- a/src/qemu/qemu_hotplug.c +++ b/src/qemu/qemu_hotplug.c @@ -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;