diff options
-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 37fd9eb8daaf..63f897394a1e 100644 --- a/net/dccp/ccids/ccid3.c +++ b/net/dccp/ccids/ccid3.c | |||
@@ -779,11 +779,8 @@ static void ccid3_hc_rx_send_feedback(struct sock *sk) | |||
779 | case TFRC_RSTATE_DATA: { | 779 | case TFRC_RSTATE_DATA: { |
780 | const u32 delta = timeval_delta(&now, | 780 | const u32 delta = timeval_delta(&now, |
781 | &hcrx->ccid3hcrx_tstamp_last_feedback); | 781 | &hcrx->ccid3hcrx_tstamp_last_feedback); |
782 | 782 | hcrx->ccid3hcrx_x_recv = usecs_div(hcrx->ccid3hcrx_bytes_recv, | |
783 | hcrx->ccid3hcrx_x_recv = (hcrx->ccid3hcrx_bytes_recv * | 783 | delta); |
784 | USEC_PER_SEC); | ||
785 | if (likely(delta > 1)) | ||
786 | hcrx->ccid3hcrx_x_recv /= delta; | ||
787 | } | 784 | } |
788 | break; | 785 | break; |
789 | default: | 786 | default: |