]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
virSystemdActivationNew: Remove superfluous `goto`s
authorTim Wiederhake <twiederh@redhat.com>
Tue, 6 Jul 2021 11:38:53 +0000 (13:38 +0200)
committerTim Wiederhake <twiederh@redhat.com>
Fri, 23 Jul 2021 09:30:11 +0000 (11:30 +0200)
Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
src/util/virsystemd.c

index f90c17e767264ee3946ec7e3ed7bbe9383ab5cb8..99c92b6f5264c8d0845126c07ba71ef3fd715843 100644 (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;
 }