From 528239cafc8e0e6b64a53cc6660d9aed6eb2b9ad Mon Sep 17 00:00:00 2001 From: Amos Kong Date: Sat, 29 Sep 2012 13:36:21 +0800 Subject: cleanup useless return sentence This patch cleans up return sentences in the end of void functions. Reported-by: Paolo Bonzini Signed-off-by: Amos Kong Signed-off-by: Stefan Hajnoczi --- ip_input.c | 1 - tcp_input.c | 2 -- udp.c | 1 - 3 files changed, 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, -- cgit v1.1