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:
parent
460473a071
commit
4c95fd23d6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=184298
@ -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;
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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 *
|
||||
|
Loading…
Reference in New Issue
Block a user