summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-07-06 16:40:51 +0200
committerIvan Kluchnikov <kluchnikovi@gmail.com>2015-08-20 19:18:52 +0300
commit8a62c5021884ac1dec7f7a338bf591657080a2d5 (patch)
tree970d78d619221f1d91adc1a1cc9a3a65c6770409
parent78de2aea7b28063be19ea6a523a834741f898668 (diff)
sms: Simplify the return handling for SMPP routes/unroutable
-rw-r--r--openbsc/src/libmsc/gsm_04_11.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/openbsc/src/libmsc/gsm_04_11.c b/openbsc/src/libmsc/gsm_04_11.c
index 82e9fae..2b6966d 100644
--- a/openbsc/src/libmsc/gsm_04_11.c
+++ b/openbsc/src/libmsc/gsm_04_11.c
@@ -297,7 +297,7 @@ int sms_route_mt_sms(struct gsm_subscriber_connection *conn, struct msgb *msg,
rc = 1; /* cause 1: unknown subscriber */
osmo_counter_inc(conn->bts->network->stats.sms.no_receiver);
#endif
- goto out;
+ return rc;
}
switch (sms_mti) {
@@ -319,7 +319,6 @@ int sms_route_mt_sms(struct gsm_subscriber_connection *conn, struct msgb *msg,
if (!rc && !gsms->receiver)
rc = GSM411_RP_CAUSE_MO_NUM_UNASSIGNED;
-out:
return rc;
}