Review at  https://gerrit.osmocom.org/6591

bssmap_handle_assignm_req(): Don't print log statemens in malloc failure case

Change-Id: I85528689b5298a13c60ae80fabd8d66459f730a9
---
M src/osmo-bsc/osmo_bsc_bssap.c
1 file changed, 1 insertion(+), 4 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/91/6591/1

diff --git a/src/osmo-bsc/osmo_bsc_bssap.c b/src/osmo-bsc/osmo_bsc_bssap.c
index e029c5f..48ec5a1 100644
--- a/src/osmo-bsc/osmo_bsc_bssap.c
+++ b/src/osmo-bsc/osmo_bsc_bssap.c
@@ -889,10 +889,7 @@
 
 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;

-- 
To view, visit https://gerrit.osmocom.org/6591
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I85528689b5298a13c60ae80fabd8d66459f730a9
Gerrit-PatchSet: 1
Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Owner: dexter <pma...@sysmocom.de>

Reply via email to