1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2024-12-25 01:34:11 +03:00

domain_conf: make virDomainDefFormatBlkiotune() 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:52 -05:00 committed by Michal Privoznik
parent a252153391
commit 10ad796901

View File

@ -29498,7 +29498,7 @@ virDomainVsockDefFormat(virBufferPtr buf,
}
static int
static void
virDomainDefFormatBlkiotune(virBufferPtr buf,
virDomainDefPtr def)
{
@ -29539,8 +29539,6 @@ virDomainDefFormatBlkiotune(virBufferPtr buf,
}
virXMLFormatElement(buf, "blkiotune", NULL, &childrenBuf);
return 0;
}
@ -29986,8 +29984,7 @@ virDomainDefFormatInternalSetRootName(virDomainDefPtr def,
virBufferAsprintf(buf, "<currentMemory unit='KiB'>%llu</currentMemory>\n",
def->mem.cur_balloon);
if (virDomainDefFormatBlkiotune(buf, def) < 0)
return -1;
virDomainDefFormatBlkiotune(buf, def);
virDomainMemtuneFormat(buf, &def->mem);
virDomainMemorybackingFormat(buf, &def->mem);