liblttng-ust-comm/lttng-ust-com.c: remove unnecessary goto in ustcomm_accept_unix_sock()
authorHenrik Hautakoski <henrik@fiktivkod.org>
Tue, 26 Jun 2012 05:59:36 +0000 (07:59 +0200)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 26 Jun 2012 05:59:36 +0000 (07:59 +0200)
Signed-off-by: Henrik Hautakoski <henrik@fiktivkod.org>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
liblttng-ust-comm/lttng-ust-comm.c

index 078b56a01bb68c49c2322fc2a8f454d597305314..1e2fd1a04395a2f364342d0b5c4d4bf49272489f 100644 (file)
@@ -172,13 +172,9 @@ int ustcomm_accept_unix_sock(int sock)
        new_fd = accept(sock, (struct sockaddr *) &sun, &len);
        if (new_fd < 0) {
                perror("accept");
-               goto error;
+               return -1;
        }
-
        return new_fd;
-
-error:
-       return -1;
 }
 
 /*
This page took 0.027363 seconds and 4 git commands to generate.