summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2009-07-04 10:11:24 +0200
committerHarald Welte <laforge@gnumonks.org>2009-07-04 10:11:24 +0200
commit4a3464c565d44ac74ec56fa8222b3eddd642d4b6 (patch)
treee4b173b12bbd0c3d807afd98a6e1862a01b1120c
parent73be3aafec5d911f1786aa5e2ec092fc8858dea4 (diff)
remove bogus extra check for data->imsi[0] in mncc_send
As Andreas points out, we already check for this condition some 10 lines below, no need to check twice.
-rw-r--r--openbsc/src/gsm_04_08.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/openbsc/src/gsm_04_08.c b/openbsc/src/gsm_04_08.c
index 3b0b51df8..40fa3eda0 100644
--- a/openbsc/src/gsm_04_08.c
+++ b/openbsc/src/gsm_04_08.c
@@ -3381,8 +3381,7 @@ int mncc_send(struct gsm_network *net, int msg_type, void *arg)
/* Callref unknown */
if (!trans) {
- if (msg_type != MNCC_SETUP_REQ ||
- (!data->called.number[0] && !data->imsi[0])) {
+ if (msg_type != MNCC_SETUP_REQ) {
DEBUGP(DCC, "(bts - trx - ts - ti -- sub %s) "
"Received '%s' from MNCC with "
"unknown callref %d\n", data->called.number,