summaryrefslogtreecommitdiffstats
path: root/openbsc/src/osmo-bsc
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-02-08 12:12:03 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-02-08 12:47:39 +0100
commita9fae1ae66df57f76a0aedbd0b56228959d37d56 (patch)
tree7390351b08bc132fd425195171edb2d45761ee41 /openbsc/src/osmo-bsc
parent362d10f20adfa0a956c43965f409cc62bb776342 (diff)
bsc: rf_ctrl will always be created, remove the NULL checks
Diffstat (limited to 'openbsc/src/osmo-bsc')
-rw-r--r--openbsc/src/osmo-bsc/osmo_bsc_grace.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/openbsc/src/osmo-bsc/osmo_bsc_grace.c b/openbsc/src/osmo-bsc/osmo_bsc_grace.c
index 341971e..4e1c79e 100644
--- a/openbsc/src/osmo-bsc/osmo_bsc_grace.c
+++ b/openbsc/src/osmo-bsc/osmo_bsc_grace.c
@@ -28,8 +28,6 @@
int bsc_grace_allow_new_connection(struct gsm_network *network, struct gsm_bts *bts)
{
- if (!network->bsc_data->rf_ctrl)
- return 1;
if (bts->excl_from_rf_lock)
return 1;
return network->bsc_data->rf_ctrl->policy == S_RF_ON;
@@ -43,8 +41,6 @@ int bsc_grace_paging_request(struct gsm_subscriber *subscr, int chan_needed,
{
struct gsm_bts *bts = NULL;
- if (!subscr->net->bsc_data->rf_ctrl)
- goto page;
if (subscr->net->bsc_data->rf_ctrl->policy == S_RF_ON)
goto page;