mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
conf: domain: Remove pointless XML node name validation in virSysinfoBIOSParseXML
The only caller passes 'node' argument originating from an XPath lookup for the 'bios' element, so there's no point in checking it once more. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
407c4b12c7
commit
1f5863ec46
@ -12084,12 +12084,6 @@ virSysinfoBIOSParseXML(xmlNodePtr node,
|
||||
|
||||
ctxt->node = node;
|
||||
|
||||
if (!virXMLNodeNameEqual(node, "bios")) {
|
||||
virReportError(VIR_ERR_XML_ERROR, "%s",
|
||||
_("XML does not contain expected 'bios' element"));
|
||||
return -1;
|
||||
}
|
||||
|
||||
def->vendor = virXPathString("string(entry[@name='vendor'])", ctxt);
|
||||
def->version = virXPathString("string(entry[@name='version'])", ctxt);
|
||||
def->date = virXPathString("string(entry[@name='date'])", ctxt);
|
||||
|
Loading…
Reference in New Issue
Block a user