From: Tim Wiederhake Date: Tue, 6 Jul 2021 08:14:59 +0000 (+0200) Subject: virNWFilterBindingDefForNet: Remove superfluous `goto`s X-Git-Tag: v7.6.0-rc1~166 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ac184eea7cf249f870fa579eec312927ce577e97;p=thirdparty%2Flibvirt.git virNWFilterBindingDefForNet: Remove superfluous `goto`s Signed-off-by: Tim Wiederhake Reviewed-by: Peter Krempa --- diff --git a/src/conf/domain_nwfilter.c b/src/conf/domain_nwfilter.c index cb35221a59..0a67b6765e 100644 --- a/src/conf/domain_nwfilter.c +++ b/src/conf/domain_nwfilter.c @@ -61,12 +61,9 @@ virNWFilterBindingDefForNet(const char *vmname, if (net->filterparams && virNWFilterHashTablePutAll(net->filterparams, ret->filterparams) < 0) - goto error; + return NULL; return g_steal_pointer(&ret); - - error: - return NULL; }