aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSylvain Munaut <tnt@246tNt.com>2020-05-08 09:57:16 +0200
committerSylvain Munaut <tnt@246tNt.com>2020-05-08 15:16:15 +0200
commit0347269b04d5a0e7f28773162d268c024b1cfc40 (patch)
tree0b55422bed0197deb11ae15a41c0101208c96be9
parentb405e6e3152fd75c4c72adf2d143d2b1f14faa68 (diff)
chan_alloc: Don't re-invent trx_is_usable and use existing helper
Signed-off-by: Sylvain Munaut <tnt@246tNt.com> Change-Id: I1ca4a6ac6ec2f4e40c8421f31871d9c9e5ac5de5
-rw-r--r--src/osmo-bsc/chan_alloc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/osmo-bsc/chan_alloc.c b/src/osmo-bsc/chan_alloc.c
index 669eb8edb..8f4d01855 100644
--- a/src/osmo-bsc/chan_alloc.c
+++ b/src/osmo-bsc/chan_alloc.c
@@ -45,8 +45,7 @@ void bts_chan_load(struct pchan_load *cl, const struct gsm_bts *bts)
int i;
/* skip administratively deactivated tranxsceivers */
- if (!nm_is_running(&trx->mo.nm_state) ||
- !nm_is_running(&trx->bb_transc.mo.nm_state))
+ if (!trx_is_usable(trx))
continue;
for (i = 0; i < ARRAY_SIZE(trx->ts); i++) {