aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-12-23 01:26:01 +0100
committerPhilipp Maier <pmaier@sysmocom.de>2018-02-19 11:43:07 +0100
commitc8b0e922303b5e70f73d2f175d7c5b3f370df50f (patch)
tree294e48c0327d1fb5d07524de54650effe12114a3
parentc1a676e75ef2164f0db7dca92a20d50e59a51130 (diff)
bssmap_handle_assignm_req(): Don't print log statemens in malloc failure case
-rw-r--r--src/osmo-bsc/osmo_bsc_bssap.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/osmo-bsc/osmo_bsc_bssap.c b/src/osmo-bsc/osmo_bsc_bssap.c
index 3e15248..156ebd3 100644
--- a/src/osmo-bsc/osmo_bsc_bssap.c
+++ b/src/osmo-bsc/osmo_bsc_bssap.c
@@ -889,10 +889,7 @@ static int bssmap_handle_assignm_req(struct gsm_subscriber_connection *conn,
reject:
resp = gsm0808_create_assignment_failure(cause, NULL);
- if (!resp) {
- LOGP(DMSC, LOGL_ERROR, "Channel allocation failure.\n");
- return -1;
- }
+ OSMO_ASSERT(resp);
osmo_bsc_sigtran_send(conn, resp);
return -1;