mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 09:41:03 -04:00
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
3 changed files with 0 additions and 6 deletions
|
|
@ -925,7 +925,6 @@ drop:
|
|||
free(s, M_TCPLOG);
|
||||
if (m != NULL)
|
||||
m_freem(m);
|
||||
return;
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
@ -2529,7 +2528,6 @@ drop:
|
|||
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 @@ done:
|
|||
*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 a new issue