mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
conf: Pass the whole device info struct to virDomainDeviceBootParseXML
No need to extract the single element.
This commit is contained in:
parent
953e52a612
commit
836bf4ba7c
@ -4816,7 +4816,7 @@ virDomainDeviceUSBMasterParseXML(xmlNodePtr node,
|
|||||||
|
|
||||||
static int
|
static int
|
||||||
virDomainDeviceBootParseXML(xmlNodePtr node,
|
virDomainDeviceBootParseXML(xmlNodePtr node,
|
||||||
int *bootIndex,
|
virDomainDeviceInfoPtr info,
|
||||||
virHashTablePtr bootHash)
|
virHashTablePtr bootHash)
|
||||||
{
|
{
|
||||||
char *order;
|
char *order;
|
||||||
@ -4848,7 +4848,7 @@ virDomainDeviceBootParseXML(xmlNodePtr node,
|
|||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
*bootIndex = boot;
|
info->bootIndex = boot;
|
||||||
ret = 0;
|
ret = 0;
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
@ -4981,7 +4981,7 @@ virDomainDeviceInfoParseXML(xmlNodePtr node,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (boot) {
|
if (boot) {
|
||||||
if (virDomainDeviceBootParseXML(boot, &info->bootIndex, bootHash))
|
if (virDomainDeviceBootParseXML(boot, info, bootHash))
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user