mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 19:45:21 +00:00
conf: domain: Reformat XPath queries in virSysinfoSystemParseXML
Remove the unneeded linebreaks after assignment operator. Only one line exceeds 80 colums and just by 4 characters. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
1f5863ec46
commit
a574b8cd87
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user