aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcommon
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2017-11-29 12:24:52 +0100
committerMax <msuraev@sysmocom.de>2017-11-29 12:24:52 +0100
commitd0f479e744873174e2b021a4f06ab688019d42b7 (patch)
tree6bd87444a66e721a13291041b78453ef2a892d5f /src/libcommon
parentaa954cd10fc5235f334b389cdeeec93e8e0452de (diff)
cosmetic: remove obsolete ROLE_BSC
It's leftover from the time when gsm_data_shared.* was actually shared with OsmoBTS. Nowadays ROLE_BSC is always defined so we can just drop it entirely and make working with gsm_data_shared.h slightly easier. Change-Id: I34fc9ee5955c14bbbde68d5499cf2acfd329afbc
Diffstat (limited to 'src/libcommon')
-rw-r--r--src/libcommon/gsm_data_shared.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/libcommon/gsm_data_shared.c b/src/libcommon/gsm_data_shared.c
index 84a71cba3..b001562cd 100644
--- a/src/libcommon/gsm_data_shared.c
+++ b/src/libcommon/gsm_data_shared.c
@@ -271,9 +271,6 @@ struct gsm_bts_trx *gsm_bts_trx_alloc(struct gsm_bts *bts)
name = gsm_lchan_name_compute(lchan);
lchan->name = talloc_strdup(trx, name);
-#ifndef ROLE_BSC
- INIT_LLIST_HEAD(&lchan->sapi_cmds);
-#endif
}
}
@@ -679,17 +676,7 @@ uint8_t gsm_pchan2chan_nr(enum gsm_phys_chan_config pchan,
break;
default:
case GSM_PCHAN_CCCH:
-#ifdef ROLE_BSC
OSMO_ASSERT(lchan_nr == 0);
-#else
- /*
- * FIXME: On octphy and litecell, we hit above assertion (see
- * Max's comment at https://gerrit.osmocom.org/589 ); disabled
- * for BTS until this is clarified; remove the #ifdef when it
- * is fixed.
- */
-#warning "fix caller that passes lchan_nr != 0"
-#endif
cbits = 0x10;
break;
}