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:
Matt Coleman 2020-11-05 22:32:47 -05:00 committed by Michal Privoznik
parent 02e7466f76
commit e16ca44ab3

View File

@ -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 */