From: Peter Krempa Date: Wed, 30 Oct 2019 11:09:34 +0000 (+0100) Subject: conf: turn virDomainMemtuneFormat void X-Git-Tag: v5.10.0-rc1~332 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa7e8bb824d5eefa7bcda20262aef4a43955c5c7;p=thirdparty%2Flibvirt.git conf: turn virDomainMemtuneFormat void Signed-off-by: Peter Krempa Reviewed-by: Ján Tomko --- diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index 0e774889a2..81ab5eb138 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -27953,12 +27953,11 @@ virDomainIOMMUDefFormat(virBufferPtr buf, } -static int +static void virDomainMemtuneFormat(virBufferPtr buf, const virDomainMemtune *mem) { g_auto(virBuffer) childBuf = VIR_BUFFER_INITIALIZER; - int ret = -1; virBufferSetChildIndent(&childBuf, buf); @@ -27984,9 +27983,6 @@ virDomainMemtuneFormat(virBufferPtr buf, } virXMLFormatElement(buf, "memtune", NULL, &childBuf); - - ret = 0; - return ret; } @@ -28489,9 +28485,7 @@ virDomainDefFormatInternalSetRootName(virDomainDefPtr def, if (virDomainDefFormatBlkiotune(buf, def) < 0) goto error; - if (virDomainMemtuneFormat(buf, &def->mem) < 0) - goto error; - + virDomainMemtuneFormat(buf, &def->mem); virDomainMemorybackingFormat(buf, &def->mem); if (virDomainCpuDefFormat(buf, def) < 0)