liblttng-ust-comm/lttng-ust-com.c: remove unnecessary goto in ustcomm_accept_unix_sock()
[lttng-ust.git] / 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.023167 seconds and 4 git commands to generate.