From: henrik@fiktivkod.org (Henrik Hautakoski)
Subject: [lttng-dev] [PATCH 2/2] liblttng-ust-comm/lttng-ust-com.c: remove unnecessary goto in ustcomm_accept_unix_sock()
Date: Mon, 25 Jun 2012 13:22:51 +0200 [thread overview]
Message-ID: <1340623371-22228-2-git-send-email-henrik@fiktivkod.org> (raw)
In-Reply-To: <1340623371-22228-1-git-send-email-henrik@fiktivkod.org>
Signed-off-by: Henrik Hautakoski <henrik at fiktivkod.org>
---
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 078b56a..1e2fd1a 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;
}
/*
--
1.7.9.5
next prev parent reply other threads:[~2012-06-25 11:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-25 11:22 [lttng-dev] [PATCH 1/2] liblttng-ust/lttng-ust-comm.c: fixing typo Henrik Hautakoski
2012-06-25 11:22 ` Henrik Hautakoski [this message]
2012-06-26 6:00 ` [lttng-dev] [PATCH 2/2] liblttng-ust-comm/lttng-ust-com.c: remove unnecessary goto in ustcomm_accept_unix_sock() Mathieu Desnoyers
2012-06-26 5:52 ` [lttng-dev] [PATCH 1/2] liblttng-ust/lttng-ust-comm.c: fixing typo Mathieu Desnoyers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1340623371-22228-2-git-send-email-henrik@fiktivkod.org \
--to=henrik@fiktivkod.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox