From b818d5755f5b1824df2cbceb279ec8c269789579 Mon Sep 17 00:00:00 2001 From: Philipp Maier Date: Tue, 12 Oct 2021 15:11:31 +0200 Subject: 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 --- src/osmo-bsc/osmo_bsc_main.c | 2 -- 1 file changed, 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 */ -- cgit v1.2.3