From a574b8cd874e08cd646e168e5540db546b280027 Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Thu, 6 Oct 2022 11:17:17 +0200 Subject: [PATCH] conf: domain: Reformat XPath queries in virSysinfoSystemParseXML MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Remove the unneeded linebreaks after assignment operator. Only one line exceeds 80 colums and just by 4 characters. Signed-off-by: Peter Krempa Reviewed-by: Ján Tomko --- src/conf/domain_conf.c | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index d24c0a9d2b..14f4d22f06 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -12142,14 +12142,10 @@ virSysinfoSystemParseXML(xmlNodePtr node, def = g_new0(virSysinfoSystemDef, 1); - def->manufacturer = - virXPathString("string(entry[@name='manufacturer'])", ctxt); - def->product = - virXPathString("string(entry[@name='product'])", ctxt); - def->version = - virXPathString("string(entry[@name='version'])", ctxt); - def->serial = - virXPathString("string(entry[@name='serial'])", ctxt); + def->manufacturer = virXPathString("string(entry[@name='manufacturer'])", ctxt); + def->product = virXPathString("string(entry[@name='product'])", ctxt); + def->version = virXPathString("string(entry[@name='version'])", ctxt); + def->serial = virXPathString("string(entry[@name='serial'])", ctxt); tmpUUID = virXPathString("string(entry[@name='uuid'])", ctxt); if (tmpUUID) { unsigned char uuidbuf[VIR_UUID_BUFLEN]; @@ -12176,10 +12172,8 @@ virSysinfoSystemParseXML(xmlNodePtr node, virUUIDFormat(uuidbuf, uuidstr); def->uuid = g_strdup(uuidstr); } - def->sku = - virXPathString("string(entry[@name='sku'])", ctxt); - def->family = - virXPathString("string(entry[@name='family'])", ctxt); + def->sku = virXPathString("string(entry[@name='sku'])", ctxt); + def->family = virXPathString("string(entry[@name='family'])", ctxt); if (!def->manufacturer && !def->product && !def->version && !def->serial && !def->uuid && !def->sku && !def->family) { -- 2.47.2