mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-26 08:31:13 +00:00
tcp: whitespace fixes
Fix places where there is space before tab, long lines, and awkward if(){, double spacing etc. Add blank line after declaration/initialization. Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
d09d3038a3
commit
688d1945bc
15 changed files with 104 additions and 123 deletions
|
@ -31,10 +31,10 @@ static void tcp_scalable_cong_avoid(struct sock *sk, u32 ack, u32 acked)
|
|||
static u32 tcp_scalable_ssthresh(struct sock *sk)
|
||||
{
|
||||
const struct tcp_sock *tp = tcp_sk(sk);
|
||||
|
||||
return max(tp->snd_cwnd - (tp->snd_cwnd>>TCP_SCALABLE_MD_SCALE), 2U);
|
||||
}
|
||||
|
||||
|
||||
static struct tcp_congestion_ops tcp_scalable __read_mostly = {
|
||||
.ssthresh = tcp_scalable_ssthresh,
|
||||
.cong_avoid = tcp_scalable_cong_avoid,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue