From: Tim Wiederhake Date: Tue, 6 Jul 2021 11:43:28 +0000 (+0200) Subject: virNWFilterCreateVarsFrom: Remove superfluous `goto`s X-Git-Tag: v7.6.0-rc1~61 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=953c7e024a7d8f3b0cd1f5d6702cddcdac820e24;p=thirdparty%2Flibvirt.git virNWFilterCreateVarsFrom: Remove superfluous `goto`s Signed-off-by: Tim Wiederhake Reviewed-by: Peter Krempa --- diff --git a/src/nwfilter/nwfilter_gentech_driver.c b/src/nwfilter/nwfilter_gentech_driver.c index 29e5e0c862..2d8c352a07 100644 --- a/src/nwfilter/nwfilter_gentech_driver.c +++ b/src/nwfilter/nwfilter_gentech_driver.c @@ -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; }