]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
qemu: caps: Fix syntax-check failure in version based capabilities
authorPeter Krempa <pkrempa@redhat.com>
Mon, 22 Jun 2015 08:48:30 +0000 (10:48 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 22 Jun 2015 08:48:30 +0000 (10:48 +0200)
A single-line 'if' body should not be encased in curly braces. Our
syntax-check enforces it. Introduced in 7f3515b4bb677d0ead1887547efc844

src/qemu/qemu_capabilities.c

index e4549ef96c6a8854c9b1a46ad90b5dd106f9a569..fa68d65b90e5a2afa86f459271611699cae0edc5 100644 (file)
@@ -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;
 }