mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
libxl: remove libxl_domain_config_init from libxlBuildDomainConfig
The passed libxl_domain_config is owned, and already initialized, by the caller. Signed-off-by: Olaf Hering <olaf@aepfle.de> Reviewed-by: Jim Fehlig <jfehlig@suse.com>
This commit is contained in:
parent
01a2339e1f
commit
0ad0204ce7
@ -2507,7 +2507,6 @@ libxlBuildDomainConfig(virPortAllocatorRange *graphicsports,
|
||||
{
|
||||
virCaps *caps = cfg->caps;
|
||||
libxl_ctx *ctx = cfg->ctx;
|
||||
libxl_domain_config_init(d_config);
|
||||
|
||||
if (libxlMakeDomCreateInfo(ctx, def, &d_config->c_info) < 0)
|
||||
return -1;
|
||||
|
Loading…
Reference in New Issue
Block a user