aboutsummaryrefslogtreecommitdiffstats
path: root/src/gprs/gprs_gmm.c
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2017-12-20 13:24:13 +0100
committerMax <msuraev@sysmocom.de>2017-12-20 16:52:03 +0000
commit367275e85143d45c17cb7b01b15b5bd791bf4a21 (patch)
tree8851a801ff9b77f831722e835193a3a477686813 /src/gprs/gprs_gmm.c
parent8a01a803a14a34d97c306ab85c8ff309b3ff9976 (diff)
Remove dead code
Get rid of ifdefs around old unused code to improve readability. Change-Id: Ia80cf845b624d520d67143b61c9de3d49074cb8c
Diffstat (limited to 'src/gprs/gprs_gmm.c')
-rw-r--r--src/gprs/gprs_gmm.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/gprs/gprs_gmm.c b/src/gprs/gprs_gmm.c
index f26c22b07..f07b806f3 100644
--- a/src/gprs/gprs_gmm.c
+++ b/src/gprs/gprs_gmm.c
@@ -1339,9 +1339,6 @@ static int gsm48_rx_gmm_att_req(struct sgsn_mm_ctx *ctx, struct msgb *msg,
if (!ctx)
ctx = sgsn_mm_ctx_by_imsi(mi_string);
if (!ctx) {
-#if 0
- return gsm48_tx_gmm_att_rej(msg, GMM_CAUSE_IMSI_UNKNOWN);
-#else
if (msg->dst)
ctx = sgsn_mm_ctx_alloc_iu(msg->dst);
else
@@ -1351,7 +1348,6 @@ static int gsm48_rx_gmm_att_req(struct sgsn_mm_ctx *ctx, struct msgb *msg,
goto rejected;
}
osmo_strlcpy(ctx->imsi, mi_string, sizeof(ctx->imsi));
-#endif
}
if (ctx->ran_type == MM_CTX_T_GERAN_Gb) {
ctx->gb.tlli = msgb_tlli(msg);