mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-09 01:18:00 +03:00
qemu: process: Simplify condition in qemuProcessRefreshBalloonState
No need to store failure and re-check right away.
This commit is contained in:
parent
c0e962b6f3
commit
1996da216a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user