提交 6117c358 编写于 作者: P Peter Krempa

conf: Don't shadow error from virGetDomain()

virGetDomain() does a good job of reporting errors itself. This patch
removes shadowing of that error in virDomainListPopulate().
上级 11bdab02
......@@ -117,8 +117,10 @@ virDomainListPopulate(void *payload,
return;
}
if (!(dom = virGetDomain(data->conn, vm->def->name, vm->def->uuid)))
goto no_memory;
if (!(dom = virGetDomain(data->conn, vm->def->name, vm->def->uuid))) {
data->error = true;
goto cleanup;
}
dom->id = vm->def->id;
......@@ -127,11 +129,6 @@ virDomainListPopulate(void *payload,
cleanup:
virDomainObjUnlock(vm);
return;
no_memory:
virReportOOMError();
data->error = true;
goto cleanup;
}
#undef MATCH
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册