summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-07-06 16:40:51 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-07-06 16:40:51 +0200
commitdcbc83355e1d7243180d436cadabd913bee2c922 (patch)
tree1f7cba6973371dc653572a665ff731bd96f061d0
parente3c391e8d00b80cc2a2c2a71a52a077cc9aaf9d7 (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;
}