diff options
Diffstat (limited to 'net/dccp/ccids')
-rw-r--r-- | net/dccp/ccids/ccid3.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/net/dccp/ccids/ccid3.c b/net/dccp/ccids/ccid3.c index 746f79d104b3..4be62a965663 100644 --- a/net/dccp/ccids/ccid3.c +++ b/net/dccp/ccids/ccid3.c | |||
@@ -149,11 +149,8 @@ static void ccid3_hc_tx_update_x(struct sock *sk, struct timeval *now) | |||
149 | */ | 149 | */ |
150 | static inline void ccid3_hc_tx_update_s(struct ccid3_hc_tx_sock *hctx, int len) | 150 | static inline void ccid3_hc_tx_update_s(struct ccid3_hc_tx_sock *hctx, int len) |
151 | { | 151 | { |
152 | if (unlikely(len == 0)) | 152 | hctx->ccid3hctx_s = hctx->ccid3hctx_s == 0 ? len : |
153 | ccid3_pr_debug("Packet payload length is 0 - not updating\n"); | 153 | (9 * hctx->ccid3hctx_s + len) / 10; |
154 | else | ||
155 | hctx->ccid3hctx_s = hctx->ccid3hctx_s == 0 ? len : | ||
156 | (9 * hctx->ccid3hctx_s + len) / 10; | ||
157 | /* | 154 | /* |
158 | * Note: We could do a potential optimisation here - when `s' changes, | 155 | * Note: We could do a potential optimisation here - when `s' changes, |
159 | * recalculate sending rate and consequently t_ipi, t_delta, and | 156 | * recalculate sending rate and consequently t_ipi, t_delta, and |