mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
synced 2025-10-23 08:12:01 +00:00
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]
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user