mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 11:22:23 +00:00
virNWFilterParseParamAttributes: Remove superfluous goto
s
Signed-off-by: Tim Wiederhake <twiederh@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
8ca6d834ad
commit
7520984c1c
@ -710,28 +710,25 @@ virNWFilterParseParamAttributes(xmlNodePtr cur)
|
||||
|
||||
if (nam == NULL || !isValidVarName(nam) ||
|
||||
val == NULL || !isValidVarValue(val)) {
|
||||
goto skip_entry;
|
||||
cur = xmlNextElementSibling(cur);
|
||||
continue;
|
||||
}
|
||||
|
||||
if ((value = virHashLookup(table, nam))) {
|
||||
/* add value to existing value -> list */
|
||||
if (virNWFilterVarValueAddValue(g_steal_pointer(&value), val) < 0)
|
||||
goto err_exit;
|
||||
return NULL;
|
||||
val = NULL;
|
||||
} else if ((value = virNWFilterParseVarValue(val))) {
|
||||
if (virHashUpdateEntry(table, nam, value) < 0)
|
||||
goto err_exit;
|
||||
return NULL;
|
||||
}
|
||||
value = NULL;
|
||||
skip_entry:
|
||||
}
|
||||
cur = xmlNextElementSibling(cur);
|
||||
}
|
||||
|
||||
return g_steal_pointer(&table);
|
||||
|
||||
err_exit:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user