mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-25 16:11:45 +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
|
@ -142,7 +142,6 @@ static int __init tcp_congestion_default(void)
|
|||
}
|
||||
late_initcall(tcp_congestion_default);
|
||||
|
||||
|
||||
/* Build string with list of available congestion control values */
|
||||
void tcp_get_available_congestion_control(char *buf, size_t maxlen)
|
||||
{
|
||||
|
@ -154,7 +153,6 @@ void tcp_get_available_congestion_control(char *buf, size_t maxlen)
|
|||
offs += snprintf(buf + offs, maxlen - offs,
|
||||
"%s%s",
|
||||
offs == 0 ? "" : " ", ca->name);
|
||||
|
||||
}
|
||||
rcu_read_unlock();
|
||||
}
|
||||
|
@ -186,7 +184,6 @@ void tcp_get_allowed_congestion_control(char *buf, size_t maxlen)
|
|||
offs += snprintf(buf + offs, maxlen - offs,
|
||||
"%s%s",
|
||||
offs == 0 ? "" : " ", ca->name);
|
||||
|
||||
}
|
||||
rcu_read_unlock();
|
||||
}
|
||||
|
@ -230,7 +227,6 @@ out:
|
|||
return ret;
|
||||
}
|
||||
|
||||
|
||||
/* Change congestion control for socket */
|
||||
int tcp_set_congestion_control(struct sock *sk, const char *name)
|
||||
{
|
||||
|
@ -337,6 +333,7 @@ EXPORT_SYMBOL_GPL(tcp_reno_cong_avoid);
|
|||
u32 tcp_reno_ssthresh(struct sock *sk)
|
||||
{
|
||||
const struct tcp_sock *tp = tcp_sk(sk);
|
||||
|
||||
return max(tp->snd_cwnd >> 1U, 2U);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(tcp_reno_ssthresh);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue