aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bsc/bts_trx.c
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2021-06-13 18:15:43 +0200
committerneels <nhofmeyr@sysmocom.de>2021-06-18 09:58:14 +0000
commitca087016810f776c5b23fc3bcec10345afe57621 (patch)
tree2e7a9964c4422b9529bd84e8bdab296c5d563d03 /src/osmo-bsc/bts_trx.c
parent14e043fbcfcfbafd8088bf65c74ad916c1bba755 (diff)
rsl_lchan_lookup: drop redundant condition
'vamos' is only set to true for osmobts types, hence no need to check that condition again. fixup for commit d37dcb9f6854a4d15dd2ba098fcbaa212251684f 'RSL: rx and tx VAMOS Channel Number cbits for VAMOS lchans' I957eff0d2c33ec795eda75a4bff21965b0179f73 Related: CID#236318 Related: SYS#5315 OS#4940 Change-Id: I4d9afc2996d95fdc15ee1a04e31d781b595023e3
Diffstat (limited to 'src/osmo-bsc/bts_trx.c')
-rw-r--r--src/osmo-bsc/bts_trx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/osmo-bsc/bts_trx.c b/src/osmo-bsc/bts_trx.c
index edd52be1f..bef98c029 100644
--- a/src/osmo-bsc/bts_trx.c
+++ b/src/osmo-bsc/bts_trx.c
@@ -225,7 +225,7 @@ struct gsm_lchan *rsl_lchan_lookup(struct gsm_bts_trx *trx, uint8_t chan_nr,
if (rc && ok)
*rc = 0;
- if (vamos && (trx->bts->model->type == GSM_BTS_TYPE_OSMOBTS))
+ if (vamos)
lch_idx += ts->max_primary_lchans;
return &ts->lchan[lch_idx];
}