From 836bf4ba7c49ef57eef4263322499cc4a0e8d2f9 Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Tue, 29 Mar 2016 12:01:39 +0200 Subject: [PATCH] conf: Pass the whole device info struct to virDomainDeviceBootParseXML No need to extract the single element. --- src/conf/domain_conf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index d4c78fdb9f..3dd81197b7 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -4816,7 +4816,7 @@ virDomainDeviceUSBMasterParseXML(xmlNodePtr node, static int virDomainDeviceBootParseXML(xmlNodePtr node, - int *bootIndex, + virDomainDeviceInfoPtr info, virHashTablePtr bootHash) { char *order; @@ -4848,7 +4848,7 @@ virDomainDeviceBootParseXML(xmlNodePtr node, goto cleanup; } - *bootIndex = boot; + info->bootIndex = boot; ret = 0; cleanup: @@ -4981,7 +4981,7 @@ virDomainDeviceInfoParseXML(xmlNodePtr node, } if (boot) { - if (virDomainDeviceBootParseXML(boot, &info->bootIndex, bootHash)) + if (virDomainDeviceBootParseXML(boot, info, bootHash)) goto cleanup; } -- 2.47.2