From c8b0e922303b5e70f73d2f175d7c5b3f370df50f Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sat, 23 Dec 2017 01:26:01 +0100 Subject: bssmap_handle_assignm_req(): Don't print log statemens in malloc failure case Change-Id: I85528689b5298a13c60ae80fabd8d66459f730a9 --- src/osmo-bsc/osmo_bsc_bssap.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src') diff --git a/src/osmo-bsc/osmo_bsc_bssap.c b/src/osmo-bsc/osmo_bsc_bssap.c index 3e15248f3..156ebd313 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; -- cgit v1.2.3