mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-08 20:51:26 +00:00
qemu: agent: remove redundant check
This commit is contained in:
parent
851ae08e3e
commit
f5109f20ff
@ -4461,7 +4461,7 @@ processSerialChangedEvent(virQEMUDriverPtr driver,
|
|||||||
|
|
||||||
if (STREQ_NULLABLE(dev.data.chr->target.name, "org.qemu.guest_agent.0")) {
|
if (STREQ_NULLABLE(dev.data.chr->target.name, "org.qemu.guest_agent.0")) {
|
||||||
if (newstate == VIR_DOMAIN_CHR_DEVICE_STATE_CONNECTED) {
|
if (newstate == VIR_DOMAIN_CHR_DEVICE_STATE_CONNECTED) {
|
||||||
if (!priv->agent && qemuConnectAgent(driver, vm) < 0)
|
if (qemuConnectAgent(driver, vm) < 0)
|
||||||
goto endjob;
|
goto endjob;
|
||||||
} else {
|
} else {
|
||||||
if (priv->agent) {
|
if (priv->agent) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user