[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH 2/7] Invert condition in qemuDomainDefAddDefaultDevices



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 | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c
index c17abbb..9519334 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:
-- 
2.7.3


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]