mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-09 06:25:19 +00:00
device-conf: removed unneeded virDomainDeviceInfoCopy()
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com> Signed-off-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
04c7fc0809
commit
caa4f0dd82
@ -86,27 +86,6 @@ virZPCIDeviceAddressParseXML(xmlNodePtr node,
|
||||
return ret;
|
||||
}
|
||||
|
||||
int
|
||||
virDomainDeviceInfoCopy(virDomainDeviceInfoPtr dst,
|
||||
virDomainDeviceInfoPtr src)
|
||||
{
|
||||
/* Assume that dst is already cleared */
|
||||
|
||||
/* first a shallow copy of *everything* */
|
||||
*dst = *src;
|
||||
|
||||
/* then copy whatever's left */
|
||||
dst->alias = NULL;
|
||||
dst->romfile = NULL;
|
||||
dst->loadparm = NULL;
|
||||
|
||||
if (VIR_STRDUP(dst->alias, src->alias) < 0 ||
|
||||
VIR_STRDUP(dst->romfile, src->romfile) < 0 ||
|
||||
VIR_STRDUP(dst->loadparm, src->loadparm) < 0)
|
||||
return -1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
void
|
||||
virDomainDeviceInfoClear(virDomainDeviceInfoPtr info)
|
||||
{
|
||||
|
@ -181,8 +181,6 @@ struct _virDomainDeviceInfo {
|
||||
bool isolationGroupLocked;
|
||||
};
|
||||
|
||||
int virDomainDeviceInfoCopy(virDomainDeviceInfoPtr dst,
|
||||
virDomainDeviceInfoPtr src);
|
||||
void virDomainDeviceInfoClear(virDomainDeviceInfoPtr info);
|
||||
void virDomainDeviceInfoFree(virDomainDeviceInfoPtr info);
|
||||
|
||||
|
@ -107,7 +107,6 @@ virDomainDeviceCCWAddressIsValid;
|
||||
virDomainDeviceCCWAddressParseXML;
|
||||
virDomainDeviceDriveAddressParseXML;
|
||||
virDomainDeviceInfoAddressIsEqual;
|
||||
virDomainDeviceInfoCopy;
|
||||
virDomainDeviceSpaprVioAddressParseXML;
|
||||
virDomainDeviceUSBAddressParseXML;
|
||||
virDomainDeviceVirtioSerialAddressParseXML;
|
||||
|
Loading…
Reference in New Issue
Block a user