diff options
author | Gerrit Renker <gerrit@erg.abdn.ac.uk> | 2007-11-24 19:05:51 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 17:54:57 -0500 |
commit | 3deeadd74bbf916b502d307222833ffcf68db557 (patch) | |
tree | 86f33bdcbab3a6b48157e6aa381a5a1668935ed7 /net/dccp/ccids/ccid2.h | |
parent | 63df18ad7fb91c65dafc89d3cf94a58a486ad416 (diff) |
[CCID2]: Replace cwnd assignment-function with assignment
The current function ccid2_change_cwnd in effect makes only an assignment, as
the test whether cwnd has reached 0 is only required when cwnd is halved.
This patch simplifies the code by replacing the function with the assignment
it performs.
Furthermore, since ssthresh derives from cwnd and appears in many assignments and
comparisons, the type of ssthresh has also been changed to match that of cwnd.
Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk>
Signed-off-by: Ian McDonald <ian.mcdonald@jandi.co.nz>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dccp/ccids/ccid2.h')
-rw-r--r-- | net/dccp/ccids/ccid2.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/dccp/ccids/ccid2.h b/net/dccp/ccids/ccid2.h index 443f08a667a2..b72e9556a155 100644 --- a/net/dccp/ccids/ccid2.h +++ b/net/dccp/ccids/ccid2.h | |||
@@ -50,9 +50,9 @@ struct ccid2_seq { | |||
50 | */ | 50 | */ |
51 | struct ccid2_hc_tx_sock { | 51 | struct ccid2_hc_tx_sock { |
52 | u32 ccid2hctx_cwnd; | 52 | u32 ccid2hctx_cwnd; |
53 | u32 ccid2hctx_ssthresh; | ||
53 | int ccid2hctx_ssacks; | 54 | int ccid2hctx_ssacks; |
54 | int ccid2hctx_acks; | 55 | int ccid2hctx_acks; |
55 | unsigned int ccid2hctx_ssthresh; | ||
56 | int ccid2hctx_pipe; | 56 | int ccid2hctx_pipe; |
57 | struct ccid2_seq *ccid2hctx_seqbuf[CCID2_SEQBUF_MAX]; | 57 | struct ccid2_seq *ccid2hctx_seqbuf[CCID2_SEQBUF_MAX]; |
58 | int ccid2hctx_seqbufc; | 58 | int ccid2hctx_seqbufc; |