diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2012-03-16 11:49:46 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2012-03-16 11:56:10 +0100 |
commit | dc3389f9c8212c1da0c704c0e1089d4a6f61a81f (patch) | |
tree | b6a6920bfaf21b9f7b8fb236ecfc5a9e7a84f65e /openbsc | |
parent | ae1997248ccb4fba1394267d3051082dfd85448a (diff) |
bsc: Fix compiler warning about wrong return and unused variable
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]
Diffstat (limited to 'openbsc')
-rw-r--r-- | openbsc/src/osmo-bsc/osmo_bsc_api.c | 3 |
1 files changed, 1 insertions, 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); |