virNWFilterCreateVarsFrom: Remove superfluous gotos

Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
Tim Wiederhake 2021-07-06 13:43:28 +02:00
parent a63665c041
commit 953c7e024a

View File

@ -202,15 +202,12 @@ virNWFilterCreateVarsFrom(GHashTable *vars1,
g_autoptr(GHashTable) res = virHashNew(virNWFilterVarValueHashFree);
if (virNWFilterHashTablePutAll(vars1, res) < 0)
goto error;
return NULL;
if (virNWFilterHashTablePutAll(vars2, res) < 0)
goto error;
return NULL;
return g_steal_pointer(&res);
error:
return NULL;
}