aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcommon/gsm_data.c
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2017-11-28 00:13:08 +0100
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-11-29 17:37:18 +0000
commit9c6d01173b4338138f879641716674833619fdf8 (patch)
treea3d288a1aa19ed122d25b63b876afc512472d950 /src/libcommon/gsm_data.c
parent17f2adb0a4ec0c579ab2883bc01293a0fd2f01a8 (diff)
HO prep: pass gsm_network to gsm_bts_alloc() already
Prepare for a future change that accesses bts->network during gsm_bts_alloc(). Currently, gsm_bts_alloc() takes a ctx parameter, and gsm_bts_alloc_register() then gets the gsm_network pointer and sets bts->network to it. All callers anyway pass gsm_network as ctx to gsm_bts_alloc(), and anything else would not make sense anyway. So enforce passing exactly gsm_network to gsm_bts_alloc() and already set the bts->network pointer from there. Prepares-for: I00870a5828703cf397776668d3301c0c3a4e033a Change-Id: Ie590c14aa08df4c4f345596b23e5226c5577057a
Diffstat (limited to 'src/libcommon/gsm_data.c')
-rw-r--r--src/libcommon/gsm_data.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/libcommon/gsm_data.c b/src/libcommon/gsm_data.c
index ef72881c5..6a78e3a3c 100644
--- a/src/libcommon/gsm_data.c
+++ b/src/libcommon/gsm_data.c
@@ -261,7 +261,6 @@ struct gsm_bts *gsm_bts_alloc_register(struct gsm_network *net, enum gsm_bts_typ
net->num_bts++;
- bts->network = net;
bts->type = type;
bts->model = model;
bts->bsic = bsic;