mirror of https://gitee.com/openkylin/libvirt.git
domain_conf: make virDomainGraphicsDefParseXMLEGLHeadless() void
This function always returns zero, so it might as well be void. Signed-off-by: Matt Coleman <matt@datto.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
5c11e165fd
commit
f54661e0a2
|
@ -14883,7 +14883,7 @@ virDomainGraphicsDefParseXMLSpice(virDomainGraphicsDefPtr def,
|
|||
}
|
||||
|
||||
|
||||
static int
|
||||
static void
|
||||
virDomainGraphicsDefParseXMLEGLHeadless(virDomainGraphicsDefPtr def,
|
||||
xmlNodePtr node,
|
||||
xmlXPathContextPtr ctxt)
|
||||
|
@ -14896,7 +14896,6 @@ virDomainGraphicsDefParseXMLEGLHeadless(virDomainGraphicsDefPtr def,
|
|||
if ((glNode = virXPathNode("./gl", ctxt)))
|
||||
def->data.egl_headless.rendernode = virXMLPropString(glNode,
|
||||
"rendernode");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -14984,8 +14983,7 @@ virDomainGraphicsDefParseXML(virDomainXMLOptionPtr xmlopt,
|
|||
goto error;
|
||||
break;
|
||||
case VIR_DOMAIN_GRAPHICS_TYPE_EGL_HEADLESS:
|
||||
if (virDomainGraphicsDefParseXMLEGLHeadless(def, node, ctxt) < 0)
|
||||
goto error;
|
||||
virDomainGraphicsDefParseXMLEGLHeadless(def, node, ctxt);
|
||||
break;
|
||||
case VIR_DOMAIN_GRAPHICS_TYPE_LAST:
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue