mirror of https://gitee.com/openkylin/libvirt.git
qemu: don't lose error on setting monitor capabilities
Spotted by clang. Regression introduced in commit e72cc3c11d
.
* src/qemu/qemu_driver.c (qemuConnectMonitor): Don't lose error status.
This commit is contained in:
parent
aa2d747350
commit
6790805d6e
|
@ -1416,7 +1416,6 @@ qemuConnectMonitor(struct qemud_driver *driver, virDomainObjPtr vm)
|
|||
ret = qemuMonitorSetCapabilities(priv->mon);
|
||||
qemuDomainObjExitMonitorWithDriver(driver, vm);
|
||||
|
||||
ret = 0;
|
||||
error:
|
||||
if (ret < 0)
|
||||
qemuMonitorClose(priv->mon);
|
||||
|
|
Loading…
Reference in New Issue