bsc: gsm0808: Fix return code in bsc_compl_l3

complete_layer3 returns true if everything succeeded, false otherwise.
However, its caller bsc_compl_l3 returns unix style (0 sucess,
negative error).

This commit has no real effect since only caller of bsc_compl_l3 never
checks return code, but will check it in the future.

Change-Id: I722696c3f6402288b51d6fcf51f478b3b0c9f0f0
This commit is contained in:
Pau Espin 2018-11-05 13:44:12 +01:00 committed by Harald Welte
parent f1e31ca882
commit 8f02f0fdca
1 changed files with 1 additions and 1 deletions

View File

@ -366,7 +366,7 @@ int bsc_compl_l3(struct gsm_subscriber_connection *conn, struct msgb *msg, uint1
return -1;
}
return complete_layer3(conn, msg, msc);
return complete_layer3(conn, msg, msc) ? 0 : -2;
}
static int handle_page_resp(struct gsm_subscriber_connection *conn, struct msgb *msg)