aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilipp Maier <pmaier@sysmocom.de>2021-10-12 15:11:31 +0200
committerPhilipp Maier <pmaier@sysmocom.de>2021-10-13 11:37:06 +0200
commitb818d5755f5b1824df2cbceb279ec8c269789579 (patch)
tree694a60f5ebb18eb8e4583b5343f217397d0483de
parent8935c8a0b514c831269941e2515ad403b273acbe (diff)
drop chan_load_samples_idx initalization from bootstrap_bts()
The index counter bts->chan_load_samples_idx is initialized to 0 in bootstrap_bts. Since the bts object is allocated using talloc it is already guaranteed that everything is set to zero. So we do not need to initalize chan_load_samples_idx. Change-Id: Ia75e59c44c3ccd653a2614c2cda7519faf999f09
-rw-r--r--src/osmo-bsc/osmo_bsc_main.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/osmo-bsc/osmo_bsc_main.c b/src/osmo-bsc/osmo_bsc_main.c
index 4e2210fab..28a56a774 100644
--- a/src/osmo-bsc/osmo_bsc_main.c
+++ b/src/osmo-bsc/osmo_bsc_main.c
@@ -512,8 +512,6 @@ static int bootstrap_bts(struct gsm_bts *bts)
bts->si_common.ncc_permitted = 0xff;
- bts->chan_load_samples_idx = 0;
-
/* ACC ramping is initialized from vty/config */
/* Initialize the BTS state */