aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmos Kong <akong@redhat.com>2012-09-29 13:36:21 +0800
committerStefan Hajnoczi <stefanha@gmail.com>2012-10-05 15:10:21 +0200
commit528239cafc8e0e6b64a53cc6660d9aed6eb2b9ad (patch)
tree2cf4d93524ac464ea57aadc047a6c06276855101
parent6643b9f70d8784d0e439c1b16016622a4ead312a (diff)
downloadslirp-528239cafc8e0e6b64a53cc6660d9aed6eb2b9ad.zip
slirp-528239cafc8e0e6b64a53cc6660d9aed6eb2b9ad.tar.gz
slirp-528239cafc8e0e6b64a53cc6660d9aed6eb2b9ad.tar.bz2
cleanup useless return sentence
This patch cleans up return sentences in the end of void functions. Reported-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Amos Kong <akong@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@gmail.com>
-rw-r--r--ip_input.c1
-rw-r--r--tcp_input.c2
-rw-r--r--udp.c1
3 files changed, 0 insertions, 4 deletions
diff --git a/ip_input.c b/ip_input.c
index 07884ca..451d062 100644
--- a/ip_input.c
+++ b/ip_input.c
@@ -209,7 +209,6 @@ void ip_input(struct mbuf *m)
return;
bad:
m_free(m);
- return;
}
#define iptofrag(P) ((struct ipasfrag *)(((char *)(P)) - sizeof(struct qlink)))
diff --git a/tcp_input.c b/tcp_input.c
index 190a135..7d1cfb5 100644
--- a/tcp_input.c
+++ b/tcp_input.c
@@ -1275,8 +1275,6 @@ drop:
* Drop space held by incoming segment and return.
*/
m_free(m);
-
- return;
}
static void tcp_dooptions(struct tcpcb *tp, u_char *cp, int cnt,
diff --git a/udp.c b/udp.c
index 2bceb08..8206e02 100644
--- a/udp.c
+++ b/udp.c
@@ -228,7 +228,6 @@ void udp_input(register struct mbuf *m, int iphlen)
return;
bad:
m_free(m);
- return;
}
int udp_output2(struct socket *so, struct mbuf *m, struct sockaddr_in *saddr,