conf: domain: Don't initialize virTristateBool local variables used for virXMLPropTristateBool

virXMLPropTristateBool already initializes the value to
VIR_TRISTATE_BOOL_ABSENT so we no longer need to do that for certain
local variables.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
Peter Krempa 2021-05-06 16:22:41 +02:00
parent bb864e6aa0
commit f66d7461d4

View File

@ -12569,7 +12569,7 @@ virDomainGraphicsDefParseXMLSDL(virDomainGraphicsDef *def,
{
VIR_XPATH_NODE_AUTORESTORE(ctxt)
xmlNodePtr glNode;
virTristateBool fullscreen = VIR_TRISTATE_BOOL_NO;
virTristateBool fullscreen;
ctxt->node = node;
@ -12640,7 +12640,7 @@ static int
virDomainGraphicsDefParseXMLDesktop(virDomainGraphicsDef *def,
xmlNodePtr node)
{
virTristateBool fullscreen = VIR_TRISTATE_BOOL_NO;
virTristateBool fullscreen;
if (virXMLPropTristateBool(node, "fullscreen", VIR_XML_PROP_NONE,
&fullscreen) < 0)
@ -12662,7 +12662,7 @@ virDomainGraphicsDefParseXMLSpice(virDomainGraphicsDef *def,
g_autofree xmlNodePtr *node_list = NULL;
int n = 0;
size_t i = 0;
virTristateBool autoport = VIR_TRISTATE_BOOL_NO;
virTristateBool autoport;
xmlNodePtr cur;
VIR_XPATH_NODE_AUTORESTORE(ctxt)