Fix endpoint not being removed when endpoint unregister is called for BAP broadcast source --- profiles/audio/bap.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/profiles/audio/bap.c b/profiles/audio/bap.c index 52a9f5e00..db0af7e7c 100644 --- a/profiles/audio/bap.c +++ b/profiles/audio/bap.c @@ -2490,15 +2490,12 @@ static void pac_removed(struct bt_bap_pac *pac, void *user_data) static void pac_removed_broadcast(struct bt_bap_pac *pac, void *user_data) { - struct btd_service *service = user_data; - struct bap_data *data; + struct bap_data *data = user_data; struct queue *queue; struct bap_ep *ep; DBG("pac %p", pac); - data = btd_service_get_user_data(service); - switch (bt_bap_pac_get_type(pac)) { case BT_BAP_SINK: queue = data->srcs; -- 2.40.1