From 8d9baf68ad7e264e89e26c066826a7c3429952e2 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Tue, 26 Jun 2012 07:59:36 +0200 Subject: [PATCH] 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 --- liblttng-ust-comm/lttng-ust-comm.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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; } /* -- 2.34.1