From: Ján Tomko Date: Tue, 3 May 2016 10:05:27 +0000 (+0200) Subject: Invert condition in qemuDomainDefAddDefaultDevices X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=ef0f90d1b8571539cf5148e978740ce58a228016;p=libvirt.git Invert condition in qemuDomainDefAddDefaultDevices For all the other machine types, we use a positive condition. Be more positive and use it for i440fx too. --- diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c index c17abbb2d3..9519334881 100644 --- a/src/qemu/qemu_domain.c +++ b/src/qemu/qemu_domain.c @@ -1753,9 +1753,8 @@ qemuDomainDefAddDefaultDevices(virDomainDefPtr def, addDefaultUSB = false; break; } - if (!qemuDomainMachineIsI440FX(def)) - break; - addPCIRoot = true; + if (qemuDomainMachineIsI440FX(def)) + addPCIRoot = true; break; case VIR_ARCH_ARMV7L: