]> xenbits.xensource.com Git - libvirt.git/commitdiff
Invert condition in qemuDomainDefAddDefaultDevices
authorJán Tomko <jtomko@redhat.com>
Tue, 3 May 2016 10:05:27 +0000 (12:05 +0200)
committerJán Tomko <jtomko@redhat.com>
Tue, 3 May 2016 10:07:46 +0000 (12:07 +0200)
For all the other machine types, we use a positive condition.

Be more positive and use it for i440fx too.

src/qemu/qemu_domain.c

index c17abbb2d3d5e1fd1d69a2eecf188e5c6220dc3b..95193348812540840ba3d0de96d247b0dcb69599 100644 (file)
@@ -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: