diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2020-07-16 14:20:32 +0200 |
---|---|---|
committer | laforge <laforge@osmocom.org> | 2020-07-18 21:45:32 +0000 |
commit | e2f1c95774e934949cef9f5e4304fa82da070666 (patch) | |
tree | 84d4c445cbd4c9d251dabfa7fa3d16158d9d0e7e /src/osmo-bsc/abis_om2000.c | |
parent | 388ed5848242f56a207abbc854aa5f2c519ffdb1 (diff) |
bts: Drop duplicated function to get trx by number
In the big mess of gsm_data we reached a point where we have multiple
functions doing the same thing, most probably because it's hard finding
stuff in there. Let's drop one of them (the one which less callers) and
move it to bts.*, where it belongs.
Change-Id: I9071a0ab250844619280fbe2be63ed99f2c87eb1
Diffstat (limited to 'src/osmo-bsc/abis_om2000.c')
-rw-r--r-- | src/osmo-bsc/abis_om2000.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/osmo-bsc/abis_om2000.c b/src/osmo-bsc/abis_om2000.c index 1e4ef9783..5c8b378ec 100644 --- a/src/osmo-bsc/abis_om2000.c +++ b/src/osmo-bsc/abis_om2000.c @@ -1039,7 +1039,7 @@ static int abis_om2k_sendmsg(struct gsm_bts *bts, struct msgb *msg) case OM2K_MO_CLS_TX: case OM2K_MO_CLS_RX: /* Route through per-TRX OML Link to the appropriate TRX */ - trx = gsm_bts_trx_by_nr(bts, o2h->mo.inst); + trx = gsm_bts_trx_num(bts, o2h->mo.inst); if (!trx) { LOGP(DNM, LOGL_ERROR, "MO=%s Tx Dropping msg to " "non-existing TRX\n", om2k_mo_name(&o2h->mo)); @@ -1049,7 +1049,7 @@ static int abis_om2k_sendmsg(struct gsm_bts *bts, struct msgb *msg) break; case OM2K_MO_CLS_TS: /* Route through per-TRX OML Link to the appropriate TRX */ - trx = gsm_bts_trx_by_nr(bts, o2h->mo.assoc_so); + trx = gsm_bts_trx_num(bts, o2h->mo.assoc_so); if (!trx) { LOGP(DNM, LOGL_ERROR, "MO=%s Tx Dropping msg to " "non-existing TRX\n", om2k_mo_name(&o2h->mo)); |