mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
virSystemdActivationNew: Remove superfluous goto
s
Signed-off-by: Tim Wiederhake <twiederh@redhat.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
parent
8b565bf40b
commit
3b559a7778
@ -968,17 +968,14 @@ virSystemdActivationNew(virSystemdActivationMap *map,
|
|||||||
fdnames = getenv("LISTEN_FDNAMES");
|
fdnames = getenv("LISTEN_FDNAMES");
|
||||||
if (fdnames) {
|
if (fdnames) {
|
||||||
if (virSystemdActivationInitFromNames(act, nfds, fdnames) < 0)
|
if (virSystemdActivationInitFromNames(act, nfds, fdnames) < 0)
|
||||||
goto error;
|
return NULL;
|
||||||
} else {
|
} else {
|
||||||
if (virSystemdActivationInitFromMap(act, nfds, map, nmap) < 0)
|
if (virSystemdActivationInitFromMap(act, nfds, map, nmap) < 0)
|
||||||
goto error;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
VIR_DEBUG("Created activation object for %d FDs", nfds);
|
VIR_DEBUG("Created activation object for %d FDs", nfds);
|
||||||
return g_steal_pointer(&act);
|
return g_steal_pointer(&act);
|
||||||
|
|
||||||
error:
|
|
||||||
return NULL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user