X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=liblttng-ust-comm%2Flttng-ust-comm.c;h=1e2fd1a04395a2f364342d0b5c4d4bf49272489f;hb=8d9baf68ad7e264e89e26c066826a7c3429952e2;hp=078b56a01bb68c49c2322fc2a8f454d597305314;hpb=98bf993f2a390a6152fc68970887a2014b6bedc5;p=lttng-ust.git diff --git a/liblttng-ust-comm/lttng-ust-comm.c b/liblttng-ust-comm/lttng-ust-comm.c index 078b56a0..1e2fd1a0 100644 --- a/liblttng-ust-comm/lttng-ust-comm.c +++ b/liblttng-ust-comm/lttng-ust-comm.c @@ -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; } /*