diff options
author | Amos Kong <akong@redhat.com> | 2012-09-29 13:36:21 +0800 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@gmail.com> | 2012-10-05 15:10:21 +0200 |
commit | 528239cafc8e0e6b64a53cc6660d9aed6eb2b9ad (patch) | |
tree | 2cf4d93524ac464ea57aadc047a6c06276855101 | |
parent | 6643b9f70d8784d0e439c1b16016622a4ead312a (diff) | |
download | slirp-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.c | 1 | ||||
-rw-r--r-- | tcp_input.c | 2 | ||||
-rw-r--r-- | udp.c | 1 |
3 files changed, 0 insertions, 4 deletions
@@ -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, @@ -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, |