Remove endearing but syntactically unnecessary "return;" statements

directly before the final closeing brackets of some TCP functions.

MFC after:	3 days
This commit is contained in:
Robert Watson 2008-10-26 19:33:22 +00:00
parent 460473a071
commit 4c95fd23d6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=184298
3 changed files with 0 additions and 6 deletions

View File

@ -925,7 +925,6 @@ tcp_input(struct mbuf *m, int off0)
free(s, M_TCPLOG);
if (m != NULL)
m_freem(m);
return;
}
static void
@ -2529,7 +2528,6 @@ tcp_do_segment(struct mbuf *m, struct tcphdr *th, struct socket *so,
if (headlocked)
INP_INFO_WUNLOCK(&V_tcbinfo);
m_freem(m);
return;
}
/*
@ -2588,7 +2586,6 @@ tcp_dropwithreset(struct mbuf *m, struct tcphdr *th, struct tcpcb *tp,
return;
drop:
m_freem(m);
return;
}
/*

View File

@ -680,5 +680,4 @@ tcp_sack_adjust(struct tcpcb *tp)
if (SEQ_LT(tp->snd_nxt, cur->end))
return;
tp->snd_nxt = tp->snd_fack;
return;
}

View File

@ -1243,7 +1243,6 @@ _syncache_add(struct in_conninfo *inc, struct tcpopt *to, struct tcphdr *th,
*lsop = NULL;
m_freem(m);
}
return;
}
static int
@ -1576,7 +1575,6 @@ syncookie_generate(struct syncache_head *sch, struct syncache *sc,
}
V_tcpstat.tcps_sc_sendcookie++;
return;
}
static struct syncache *