Bluetooth: BAP: Remove err from recv_state_removed callback

The callback is only ever called when we received a
notification from the BASS server that the receive state is
removed, which cannot contain an error code.
Thus it does not make sense for the callback to have an
error code.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
This commit is contained in:
Emil Gydesen 2024-05-09 13:53:27 +02:00 committed by Alberto Escolar
commit a6a14360a9
6 changed files with 16 additions and 27 deletions

View file

@ -215,16 +215,9 @@ static void bap_broadcast_assistant_recv_state_cb(
}
}
static void bap_broadcast_assistant_recv_state_removed_cb(struct bt_conn *conn,
int err,
uint8_t src_id)
static void bap_broadcast_assistant_recv_state_removed_cb(struct bt_conn *conn, uint8_t src_id)
{
if (err != 0) {
shell_error(ctx_shell, "BASS recv state removed failed (%d)",
err);
} else {
shell_print(ctx_shell, "BASS recv state %u removed", src_id);
}
shell_print(ctx_shell, "BASS recv state %u removed", src_id);
}
static void bap_broadcast_assistant_scan_start_cb(struct bt_conn *conn, int err)