提交 1996da21 编写于 作者: P Peter Krempa

qemu: process: Simplify condition in qemuProcessRefreshBalloonState

No need to store failure and re-check right away.
上级 c0e962b6
......@@ -2012,10 +2012,7 @@ qemuProcessRefreshBalloonState(virQEMUDriverPtr driver,
return -1;
rc = qemuMonitorGetBalloonInfo(qemuDomainGetMonitor(vm), &balloon);
if (qemuDomainObjExitMonitor(driver, vm) < 0)
rc = -1;
if (rc < 0)
if (qemuDomainObjExitMonitor(driver, vm) < 0 || rc < 0)
return -1;
vm->def->mem.cur_balloon = balloon;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册