Get rid of singleton gprs_bssgp_pcu_current_bctx()
Access it from existing pointers instead.
Change-Id: I77455da5221090ebea142ecd49d5dba0065bfc5c
diff --git a/src/gprs_bssgp_pcu.c b/src/gprs_bssgp_pcu.c
index 956fb66..c5cc39d 100644
--- a/src/gprs_bssgp_pcu.c
+++ b/src/gprs_bssgp_pcu.c
@@ -515,7 +515,7 @@
if (!TLVP_PRESENT(bp->tp, BSSGP_IE_BVCI))
return;
- if (gprs_bssgp_pcu_current_bctx()->bvci != bp->bvci) {
+ if (the_pcu->bssgp.bctx->bvci != bp->bvci) {
LOGP(DPCU, LOGL_NOTICE,
"Received BSSGP STATUS message for an unknown BVCI (%d), "
"ignored\n",
@@ -1181,11 +1181,6 @@
bts->nse = NULL;
}
-struct bssgp_bvc_ctx *gprs_bssgp_pcu_current_bctx(void)
-{
- return the_pcu->bssgp.bctx;
-}
-
void gprs_bssgp_update_frames_sent()
{
the_pcu->bssgp.queue_frames_sent += 1;