From dc3389f9c8212c1da0c704c0e1089d4a6f61a81f Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Fri, 16 Mar 2012 11:49:46 +0100 Subject: [PATCH] bsc: Fix compiler warning about wrong return and unused variable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit osmo_bsc_api.c: In function ‘bsc_cm_update’: osmo_bsc_api.c:195:2: warning: ‘return’ with a value, in function returning void [enabled by default] osmo_bsc_api.c:193:28: warning: unused variable ‘sccp’ [-Wunused-variable] --- openbsc/src/osmo-bsc/osmo_bsc_api.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/openbsc/src/osmo-bsc/osmo_bsc_api.c b/openbsc/src/osmo-bsc/osmo_bsc_api.c index 72e7b9b78..db9ceba09 100644 --- a/openbsc/src/osmo-bsc/osmo_bsc_api.c +++ b/openbsc/src/osmo-bsc/osmo_bsc_api.c @@ -187,9 +187,8 @@ static void bsc_cm_update(struct gsm_subscriber_connection *conn, const uint8_t *cm2, uint8_t cm2_len, const uint8_t *cm3, uint8_t cm3_len) { - struct osmo_bsc_sccp_con *sccp; struct msgb *resp; - return_when_not_connected_val(conn, 1); + return_when_not_connected(conn); resp = gsm0808_create_classmark_update(cm2, cm2_len, cm3, cm3_len);