From 5a26b4822380f8b8aed83937237fa0217b0a8b41 Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Sat, 12 Dec 2020 10:32:01 +0100 Subject: ipcpd: Remove unused variable in MB-ECN policy The t_sent variable is a remnant from the first version and isn't needed anymore. Signed-off-by: Dimitri Staessens Signed-off-by: Sander Vrijders --- 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 1791e42a..9560e211 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++; -- cgit v1.2.3