[PATCH v1] libxl: remove libxl_domain_build_info_init from libxlMakeDomBuildInfo

Olaf Hering olaf at aepfle.de
Thu May 20 11:26:20 UTC 2021


The used libxl_domain_build_info, which is contained in
libxl_domain_config, is owned and already initialized by the caller.

Signed-off-by: Olaf Hering <olaf at aepfle.de>
---
 src/libxl/libxl_conf.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/libxl/libxl_conf.c b/src/libxl/libxl_conf.c
index 1fd0322b6a..3598ca395d 100644
--- a/src/libxl/libxl_conf.c
+++ b/src/libxl/libxl_conf.c
@@ -346,8 +346,6 @@ libxlMakeDomBuildInfo(virDomainDef *def,
     size_t i;
     size_t nusbdevice = 0;
 
-    libxl_domain_build_info_init(b_info);
-
     if (hvm) {
         libxl_domain_build_info_init_type(b_info, LIBXL_DOMAIN_TYPE_HVM);
     } else if (pvh) {




More information about the libvir-list mailing list