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:
Eric Blake 2010-07-30 09:47:28 -06:00
parent aa2d747350
commit 6790805d6e

View File

@ -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);