提交 062074c4 编写于 作者: J Ján Tomko

Remove QEMU_CAPS_MACHINE_USB_OPT from ComputeCmdFlags

The version check is for >=1.3.0, but ComputeCmdFlags
is only called for QEMU <1.2.0.
上级 c3725db8
...@@ -1143,10 +1143,6 @@ virQEMUCapsComputeCmdFlags(const char *help, ...@@ -1143,10 +1143,6 @@ virQEMUCapsComputeCmdFlags(const char *help,
if (strstr(help, "-machine")) if (strstr(help, "-machine"))
virQEMUCapsSet(qemuCaps, QEMU_CAPS_MACHINE_OPT); virQEMUCapsSet(qemuCaps, QEMU_CAPS_MACHINE_OPT);
/* USB option is supported v1.3.0 onwards */
if (qemuCaps->version >= 1003000)
virQEMUCapsSet(qemuCaps, QEMU_CAPS_MACHINE_USB_OPT);
/* /*
* Handling of -incoming arg with varying features * Handling of -incoming arg with varying features
* -incoming tcp (kvm >= 79, qemu >= 0.10.0) * -incoming tcp (kvm >= 79, qemu >= 0.10.0)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册