From: Henrik Hautakoski Date: Tue, 26 Jun 2012 05:59:36 +0000 (+0200) Subject: liblttng-ust-comm/lttng-ust-com.c: remove unnecessary goto in ustcomm_accept_unix_sock() X-Git-Tag: v2.1.0-rc1~52 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=8d9baf68ad7e264e89e26c066826a7c3429952e2;p=lttng-ust.git liblttng-ust-comm/lttng-ust-com.c: remove unnecessary goto in ustcomm_accept_unix_sock() Signed-off-by: Henrik Hautakoski Signed-off-by: Mathieu Desnoyers --- 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; } /*