mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-03 02:15:23 +00:00
domain_conf: make virDomainDiskDefFormatIotune() 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
97914d039d
commit
02e7466f76
@ -25605,7 +25605,7 @@ virDomainDiskBackingStoreFormat(virBufferPtr buf,
|
|||||||
disk->blkdeviotune.val); \
|
disk->blkdeviotune.val); \
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static void
|
||||||
virDomainDiskDefFormatIotune(virBufferPtr buf,
|
virDomainDiskDefFormatIotune(virBufferPtr buf,
|
||||||
virDomainDiskDefPtr disk)
|
virDomainDiskDefPtr disk)
|
||||||
{
|
{
|
||||||
@ -25643,8 +25643,6 @@ virDomainDiskDefFormatIotune(virBufferPtr buf,
|
|||||||
FORMAT_IOTUNE(write_iops_sec_max_length);
|
FORMAT_IOTUNE(write_iops_sec_max_length);
|
||||||
|
|
||||||
virXMLFormatElement(buf, "iotune", NULL, &childBuf);
|
virXMLFormatElement(buf, "iotune", NULL, &childBuf);
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#undef FORMAT_IOTUNE
|
#undef FORMAT_IOTUNE
|
||||||
@ -25880,8 +25878,7 @@ virDomainDiskDefFormat(virBufferPtr buf,
|
|||||||
}
|
}
|
||||||
virBufferAddLit(buf, "/>\n");
|
virBufferAddLit(buf, "/>\n");
|
||||||
|
|
||||||
if (virDomainDiskDefFormatIotune(buf, def) < 0)
|
virDomainDiskDefFormatIotune(buf, def);
|
||||||
return -1;
|
|
||||||
|
|
||||||
if (def->src->readonly)
|
if (def->src->readonly)
|
||||||
virBufferAddLit(buf, "<readonly/>\n");
|
virBufferAddLit(buf, "<readonly/>\n");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user