virSystemdActivationNew: 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:38:53 +02:00
parent 8b565bf40b
commit 3b559a7778

View File

@ -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;
}