mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-23 21:15:20 +00:00
domain_conf: make virDomainDiskDefFormatDriver() 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
02e7466f76
commit
e16ca44ab3
@ -25648,7 +25648,7 @@ virDomainDiskDefFormatIotune(virBufferPtr buf,
|
|||||||
#undef FORMAT_IOTUNE
|
#undef FORMAT_IOTUNE
|
||||||
|
|
||||||
|
|
||||||
static int
|
static void
|
||||||
virDomainDiskDefFormatDriver(virBufferPtr buf,
|
virDomainDiskDefFormatDriver(virBufferPtr buf,
|
||||||
virDomainDiskDefPtr disk)
|
virDomainDiskDefPtr disk)
|
||||||
{
|
{
|
||||||
@ -25705,7 +25705,6 @@ virDomainDiskDefFormatDriver(virBufferPtr buf,
|
|||||||
virDomainVirtioOptionsFormat(&driverBuf, disk->virtio);
|
virDomainVirtioOptionsFormat(&driverBuf, disk->virtio);
|
||||||
|
|
||||||
virXMLFormatElement(buf, "driver", &driverBuf, NULL);
|
virXMLFormatElement(buf, "driver", &driverBuf, NULL);
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -25837,8 +25836,7 @@ virDomainDiskDefFormat(virBufferPtr buf,
|
|||||||
virBufferAddLit(buf, ">\n");
|
virBufferAddLit(buf, ">\n");
|
||||||
virBufferAdjustIndent(buf, 2);
|
virBufferAdjustIndent(buf, 2);
|
||||||
|
|
||||||
if (virDomainDiskDefFormatDriver(buf, def) < 0)
|
virDomainDiskDefFormatDriver(buf, def);
|
||||||
return -1;
|
|
||||||
|
|
||||||
/* Format as child of <disk> if defined there; otherwise,
|
/* Format as child of <disk> if defined there; otherwise,
|
||||||
* if defined as child of <source>, then format later */
|
* if defined as child of <source>, then format later */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user