From: Tim Wiederhake Date: Tue, 6 Jul 2021 11:38:53 +0000 (+0200) Subject: virSystemdActivationNew: Remove superfluous `goto`s X-Git-Tag: v7.6.0-rc1~64 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b559a7778dbe2b061cadabb25f06ef97d5711db;p=thirdparty%2Flibvirt.git virSystemdActivationNew: Remove superfluous `goto`s Signed-off-by: Tim Wiederhake Reviewed-by: Peter Krempa --- diff --git a/src/util/virsystemd.c b/src/util/virsystemd.c index f90c17e767..99c92b6f52 100644 --- a/src/util/virsystemd.c +++ b/src/util/virsystemd.c @@ -968,17 +968,14 @@ virSystemdActivationNew(virSystemdActivationMap *map, fdnames = getenv("LISTEN_FDNAMES"); if (fdnames) { if (virSystemdActivationInitFromNames(act, nfds, fdnames) < 0) - goto error; + return NULL; } else { if (virSystemdActivationInitFromMap(act, nfds, map, nmap) < 0) - goto error; + return NULL; } VIR_DEBUG("Created activation object for %d FDs", nfds); return g_steal_pointer(&act); - - error: - return NULL; }