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 10:18:57 +02:00
parent b658836529
commit 0c209b39c9

View File

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