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:
Olaf Hering 2021-05-19 10:40:00 +02:00 committed by Jim Fehlig
parent 01a2339e1f
commit 0ad0204ce7

View File

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