mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 06:05:27 +00:00
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().
This commit is contained in:
parent
11bdab02c2
commit
6117c35829
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user