Change in osmo-bsc[master]: rsl_lchan_lookup: drop redundant condition

neels gerrit-no-reply at lists.osmocom.org
Fri Jun 18 09:58:14 UTC 2021


neels has submitted this change. ( https://gerrit.osmocom.org/c/osmo-bsc/+/24653 )

Change subject: rsl_lchan_lookup: drop redundant condition
......................................................................

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
---
M src/osmo-bsc/bts_trx.c
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  laforge: Looks good to me, but someone else must approve
  fixeria: Looks good to me, approved
  pespin: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/src/osmo-bsc/bts_trx.c b/src/osmo-bsc/bts_trx.c
index edd52be..bef98c0 100644
--- a/src/osmo-bsc/bts_trx.c
+++ b/src/osmo-bsc/bts_trx.c
@@ -225,7 +225,7 @@
 	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];
 }

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-bsc/+/24653
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Change-Id: I4d9afc2996d95fdc15ee1a04e31d781b595023e3
Gerrit-Change-Number: 24653
Gerrit-PatchSet: 2
Gerrit-Owner: neels <nhofmeyr at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy at sysmocom.de>
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-Reviewer: neels <nhofmeyr at sysmocom.de>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210618/31825d70/attachment.htm>


More information about the gerrit-log mailing list