[libvirt] [PATCH] qemu: caps: Fix syntax-check failure in version based capabilities

Peter Krempa pkrempa at redhat.com
Mon Jun 22 08:50:55 UTC 2015


A single-line 'if' body should not be encased in curly braces. Our
syntax-check enforces it. Introduced in 7f3515b4bb677d0ead1887547efc844
---

Pushed under the build-breaker rule.

 src/qemu/qemu_capabilities.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c
index e4549ef..fa68d65 100644
--- a/src/qemu/qemu_capabilities.c
+++ b/src/qemu/qemu_capabilities.c
@@ -1337,9 +1337,8 @@ virQEMUCapsComputeCmdFlags(const char *help,
         virQEMUCapsSet(qemuCaps, QEMU_CAPS_VNC_SHARE_POLICY);
     }

-    if (version >= 2003000) {
+    if (version >= 2003000)
         virQEMUCapsSet(qemuCaps, QEMU_CAPS_ARM_VIRT_PCI);
-    }

     return 0;
 }
-- 
2.4.1




More information about the libvir-list mailing list