From 2b076289495a3df1c345d4138057db3ea5eabb2e Mon Sep 17 00:00:00 2001 From: Vadim Yanitskiy Date: Tue, 6 Apr 2021 03:52:52 +0200 Subject: [hopping] generate_ma_for_ts() returns no meaningful value Change-Id: Ic3ba3323459bba1336adb1f902cb2371edea1f71 --- src/osmo-bsc/osmo_bsc_main.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/osmo-bsc/osmo_bsc_main.c b/src/osmo-bsc/osmo_bsc_main.c index ec0741001..6c7c2753a 100644 --- a/src/osmo-bsc/osmo_bsc_main.c +++ b/src/osmo-bsc/osmo_bsc_main.c @@ -256,7 +256,7 @@ static int nm_sig_cb(unsigned int subsys, unsigned int signal, } /* Produce a MA as specified in 10.5.2.21 */ -static int generate_ma_for_ts(struct gsm_bts_trx_ts *ts) +static void generate_ma_for_ts(struct gsm_bts_trx_ts *ts) { /* we have three bitvecs: the per-timeslot ARFCNs, the cell chan ARFCNs * and the MA */ @@ -271,7 +271,7 @@ static int generate_ma_for_ts(struct gsm_bts_trx_ts *ts) memset(ma->data, 0, ma->data_len); if (!ts->hopping.enabled) - return 0; + return; /* count the number of ARFCNs in the cell channel allocation */ num_cell_arfcns = 0; @@ -303,8 +303,6 @@ static int generate_ma_for_ts(struct gsm_bts_trx_ts *ts) else bitvec_set_bit_pos(ma, ma->cur_bit, 0); } - - return 0; } static void bootstrap_rsl(struct gsm_bts_trx *trx) -- cgit v1.2.3