aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@espeweb.net>2021-03-02 13:07:05 +0100
committerPau Espin Pedrol <pespin@espeweb.net>2021-03-02 13:09:32 +0100
commita89008b72434d8b0cafed04235a9c46c316d8e63 (patch)
tree6e301570e809d158be68d590856f3bde835deba2
parenta70bf72ce5c6577b960503dc7a50cb69a129a9de (diff)
tbd_dl: Don't re-initialize class field twice
-rw-r--r--src/tbf_dl.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/tbf_dl.cpp b/src/tbf_dl.cpp
index 57044a1b..88bab7de 100644
--- a/src/tbf_dl.cpp
+++ b/src/tbf_dl.cpp
@@ -171,9 +171,6 @@ struct gprs_rlcmac_dl_tbf *tbf_alloc_dl_tbf(struct gprs_rlcmac_bts *bts, GprsMs
llist_add(tbf_bts_list((struct gprs_rlcmac_tbf *)tbf), &bts->dl_tbfs);
bts_do_rate_ctr_inc(tbf->bts, CTR_TBF_DL_ALLOCATED);
- tbf->m_last_dl_poll_fn = -1;
- tbf->m_last_dl_drained_fn = -1;
-
osmo_clock_gettime(CLOCK_MONOTONIC, &tbf->m_bw.dl_bw_tv);
osmo_clock_gettime(CLOCK_MONOTONIC, &tbf->m_bw.dl_loss_tv);
@@ -185,8 +182,8 @@ gprs_rlcmac_dl_tbf::gprs_rlcmac_dl_tbf(struct gprs_rlcmac_bts *bts_, GprsMs *ms)
m_tx_counter(0),
m_wait_confirm(0),
m_dl_ack_requested(false),
- m_last_dl_poll_fn(0),
- m_last_dl_drained_fn(0),
+ m_last_dl_poll_fn(-1),
+ m_last_dl_drained_fn(-1),
m_dl_gprs_ctrs(NULL),
m_dl_egprs_ctrs(NULL)
{