summaryrefslogtreecommitdiff
path: root/slirp
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
commit4d5b97da35ecbfdad6fe1cbe7fdd7d71ef735602 (patch)
treeee0e196c5bc3d4cb7702ff55c5bf7464c86a8783 /slirp
parent58455eb9f2865d54c8bf208805f7a4c217b5c00d (diff)
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>
Diffstat (limited to 'slirp')
-rw-r--r--slirp/ip_input.c1
-rw-r--r--slirp/tcp_input.c2
-rw-r--r--slirp/udp.c1
3 files changed, 0 insertions, 4 deletions
diff --git a/slirp/ip_input.c b/slirp/ip_input.c
index ce24faf165..6f4cff8fdd 100644
--- a/slirp/ip_input.c
+++ b/slirp/ip_input.c
@@ -213,7 +213,6 @@ ip_input(struct mbuf *m)
return;
bad:
m_free(m);
- return;
}
#define iptofrag(P) ((struct ipasfrag *)(((char*)(P)) - sizeof(struct qlink)))
diff --git a/slirp/tcp_input.c b/slirp/tcp_input.c
index 942aaf44f1..6440eae7fa 100644
--- a/slirp/tcp_input.c
+++ b/slirp/tcp_input.c
@@ -1281,8 +1281,6 @@ drop:
* Drop space held by incoming segment and return.
*/
m_free(m);
-
- return;
}
static void
diff --git a/slirp/udp.c b/slirp/udp.c
index ced509656d..9286cb7d31 100644
--- a/slirp/udp.c
+++ b/slirp/udp.c
@@ -231,7 +231,6 @@ udp_input(register struct mbuf *m, int iphlen)
return;
bad:
m_free(m);
- return;
}
int udp_output2(struct socket *so, struct mbuf *m,