mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
virNWFilterCreateVarsFrom: Remove superfluous goto
s
Signed-off-by: Tim Wiederhake <twiederh@redhat.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
parent
a63665c041
commit
953c7e024a
@ -202,15 +202,12 @@ virNWFilterCreateVarsFrom(GHashTable *vars1,
|
|||||||
g_autoptr(GHashTable) res = virHashNew(virNWFilterVarValueHashFree);
|
g_autoptr(GHashTable) res = virHashNew(virNWFilterVarValueHashFree);
|
||||||
|
|
||||||
if (virNWFilterHashTablePutAll(vars1, res) < 0)
|
if (virNWFilterHashTablePutAll(vars1, res) < 0)
|
||||||
goto error;
|
return NULL;
|
||||||
|
|
||||||
if (virNWFilterHashTablePutAll(vars2, res) < 0)
|
if (virNWFilterHashTablePutAll(vars2, res) < 0)
|
||||||
goto error;
|
return NULL;
|
||||||
|
|
||||||
return g_steal_pointer(&res);
|
return g_steal_pointer(&res);
|
||||||
|
|
||||||
error:
|
|
||||||
return NULL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user