mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-24 05:25:18 +00:00
domain_conf: make virDomainControllerDriverFormat() void
This function always returns zero, so it might as well be void. Signed-off-by: Matt Coleman <matt@datto.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
e16ca44ab3
commit
154b3f4256
@ -25918,7 +25918,7 @@ virDomainDiskDefFormat(virBufferPtr buf,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static int
|
static void
|
||||||
virDomainControllerDriverFormat(virBufferPtr buf,
|
virDomainControllerDriverFormat(virBufferPtr buf,
|
||||||
virDomainControllerDefPtr def)
|
virDomainControllerDefPtr def)
|
||||||
{
|
{
|
||||||
@ -25944,8 +25944,6 @@ virDomainControllerDriverFormat(virBufferPtr buf,
|
|||||||
virDomainVirtioOptionsFormat(&driverBuf, def->virtio);
|
virDomainVirtioOptionsFormat(&driverBuf, def->virtio);
|
||||||
|
|
||||||
virXMLFormatElement(buf, "driver", &driverBuf, NULL);
|
virXMLFormatElement(buf, "driver", &driverBuf, NULL);
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -26092,8 +26090,7 @@ virDomainControllerDefFormat(virBufferPtr buf,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (virDomainControllerDriverFormat(&childBuf, def) < 0)
|
virDomainControllerDriverFormat(&childBuf, def);
|
||||||
return -1;
|
|
||||||
|
|
||||||
virDomainDeviceInfoFormat(&childBuf, &def->info, flags);
|
virDomainDeviceInfoFormat(&childBuf, &def->info, flags);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user