mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-05 12:35:20 +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 = g_new0(virSysinfoSystemDef, 1);
|
||||||
|
|
||||||
def->manufacturer =
|
def->manufacturer = virXPathString("string(entry[@name='manufacturer'])", ctxt);
|
||||||
virXPathString("string(entry[@name='manufacturer'])", ctxt);
|
def->product = virXPathString("string(entry[@name='product'])", ctxt);
|
||||||
def->product =
|
def->version = virXPathString("string(entry[@name='version'])", ctxt);
|
||||||
virXPathString("string(entry[@name='product'])", ctxt);
|
def->serial = virXPathString("string(entry[@name='serial'])", ctxt);
|
||||||
def->version =
|
|
||||||
virXPathString("string(entry[@name='version'])", ctxt);
|
|
||||||
def->serial =
|
|
||||||
virXPathString("string(entry[@name='serial'])", ctxt);
|
|
||||||
tmpUUID = virXPathString("string(entry[@name='uuid'])", ctxt);
|
tmpUUID = virXPathString("string(entry[@name='uuid'])", ctxt);
|
||||||
if (tmpUUID) {
|
if (tmpUUID) {
|
||||||
unsigned char uuidbuf[VIR_UUID_BUFLEN];
|
unsigned char uuidbuf[VIR_UUID_BUFLEN];
|
||||||
@ -12176,10 +12172,8 @@ virSysinfoSystemParseXML(xmlNodePtr node,
|
|||||||
virUUIDFormat(uuidbuf, uuidstr);
|
virUUIDFormat(uuidbuf, uuidstr);
|
||||||
def->uuid = g_strdup(uuidstr);
|
def->uuid = g_strdup(uuidstr);
|
||||||
}
|
}
|
||||||
def->sku =
|
def->sku = virXPathString("string(entry[@name='sku'])", ctxt);
|
||||||
virXPathString("string(entry[@name='sku'])", ctxt);
|
def->family = virXPathString("string(entry[@name='family'])", ctxt);
|
||||||
def->family =
|
|
||||||
virXPathString("string(entry[@name='family'])", ctxt);
|
|
||||||
|
|
||||||
if (!def->manufacturer && !def->product && !def->version &&
|
if (!def->manufacturer && !def->product && !def->version &&
|
||||||
!def->serial && !def->uuid && !def->sku && !def->family) {
|
!def->serial && !def->uuid && !def->sku && !def->family) {
|
||||||
|
Loading…
Reference in New Issue
Block a user