[PATCH] ipcpd: Remove unused variable in MB-ECN policy

  • From: Dimitri Staessens <dimitri@ouroboros.rocks>
  • To: ouroboros@xxxxxxxxxxxxx
  • Date: Sat, 12 Dec 2020 10:32:01 +0100

The t_sent variable is a remnant from the first version and isn't
needed anymore.

Signed-off-by: Dimitri Staessens <dimitri@ouroboros.rocks>
---
 src/ipcpd/unicast/pol/ca-mb-ecn.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/src/ipcpd/unicast/pol/ca-mb-ecn.c 
b/src/ipcpd/unicast/pol/ca-mb-ecn.c
index 1791e42..9560e21 100644
--- a/src/ipcpd/unicast/pol/ca-mb-ecn.c
+++ b/src/ipcpd/unicast/pol/ca-mb-ecn.c
@@ -62,8 +62,6 @@ struct mb_ecn_ctx {
         size_t          tx_mul; /* Slot size multiplier             */
         size_t          tx_inc; /* Additive increase                */
         size_t          tx_slot;
-
-        struct timespec t_sent; /* Last sent packet                 */
 };
 
 struct pol_ca_ops mb_ecn_ca_ops = {
@@ -113,8 +111,6 @@ ca_wnd_t mb_ecn_ctx_update_snd(void * _ctx,
 
         clock_gettime(PTHREAD_COND_CLOCK, &now);
 
-        ctx->t_sent = now;
-
         slot = ts_to_ns(now) >> ctx->tx_mul;
 
         ctx->tx_ctr++;
-- 
2.29.2


Other related posts:

  • » [PATCH] ipcpd: Remove unused variable in MB-ECN policy - Dimitri Staessens