From 0347269b04d5a0e7f28773162d268c024b1cfc40 Mon Sep 17 00:00:00 2001 From: Sylvain Munaut Date: Fri, 8 May 2020 09:57:16 +0200 Subject: chan_alloc: Don't re-invent trx_is_usable and use existing helper Signed-off-by: Sylvain Munaut Change-Id: I1ca4a6ac6ec2f4e40c8421f31871d9c9e5ac5de5 --- src/osmo-bsc/chan_alloc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/osmo-bsc/chan_alloc.c') 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++) { -- cgit v1.2.3