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