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:
parent
0d1fe67b7e
commit
5438554315
|
@ -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++) {
|
||||
|
|
Loading…
Reference in New Issue