chan_alloc: Don't re-invent trx_is_usable and use existing helper

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Change-Id: I1ca4a6ac6ec2f4e40c8421f31871d9c9e5ac5de5
This commit is contained in:
Sylvain Munaut 2020-05-08 09:57:16 +02:00 committed by laforge
parent 0d1fe67b7e
commit 5438554315
1 changed files with 1 additions and 2 deletions

View File

@ -46,8 +46,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++) {