From 344010472315b240f6776b6282a80b400d09a69c Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Mon, 4 Oct 2021 12:05:32 +0200 Subject: [PATCH] trx_provision_fsm: Drop unneeded reset of fields Since recently, reset of all fields is already properly done in trx_provision_reset(). Change-Id: I3e6bc8205704e425644507dd1f1b299dea4cd851 --- src/osmo-bts-trx/trx_provision_fsm.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/osmo-bts-trx/trx_provision_fsm.c b/src/osmo-bts-trx/trx_provision_fsm.c index 52736adee..758789d8c 100644 --- a/src/osmo-bts-trx/trx_provision_fsm.c +++ b/src/osmo-bts-trx/trx_provision_fsm.c @@ -584,7 +584,6 @@ static void st_open_poweron(struct osmo_fsm_inst *fi, uint32_t event, void *data struct phy_instance *pinst = l1h->phy_inst; struct phy_link *plink = pinst->phy_link; struct trx_prov_ev_cfg_ts_data* ts_data; - uint8_t tn; switch (event) { case TRX_PROV_EV_CLOSE: @@ -594,11 +593,6 @@ static void st_open_poweron(struct osmo_fsm_inst *fi, uint32_t event, void *data trx_if_cmd_poweroff(l1h, l1if_poweronoff_cb); plink->u.osmotrx.poweronoff_sent = true; } - l1h->config.rxgain_sent = false; - l1h->config.maxdly_sent = false; - l1h->config.maxdlynb_sent = false; - for (tn = 0; tn < TRX_NR_TS; tn++) - l1h->config.setslot_sent[tn] = false; } else if (!pinst->phy_link->u.osmotrx.poweronoff_sent) { bts_model_trx_close_cb(pinst->trx, 0); } /* else: poweroff in progress, cb will be called upon TRXC RSP */