提交 f5109f20 编写于 作者: N Nikolay Shirokovskiy 提交者: Maxim Nestratov

qemu: agent: remove redundant check

上级 851ae08e
......@@ -4461,7 +4461,7 @@ processSerialChangedEvent(virQEMUDriverPtr driver,
if (STREQ_NULLABLE(dev.data.chr->target.name, "org.qemu.guest_agent.0")) {
if (newstate == VIR_DOMAIN_CHR_DEVICE_STATE_CONNECTED) {
if (!priv->agent && qemuConnectAgent(driver, vm) < 0)
if (qemuConnectAgent(driver, vm) < 0)
goto endjob;
} else {
if (priv->agent) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册