This removes the switch case for the DISABLING state from bap_bcast_set_state, since this state is not used for broadcast. --- src/shared/bap.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/shared/bap.c b/src/shared/bap.c index 639149520..1d9f59f21 100644 --- a/src/shared/bap.c +++ b/src/shared/bap.c @@ -2056,10 +2056,6 @@ static void bap_bcast_set_state(struct bt_bap_stream *stream, uint8_t state) if (stream->ops && stream->ops->detach) stream->ops->detach(stream); break; - case BT_ASCS_ASE_STATE_DISABLING: - bap_stream_io_detach(stream); - stream_set_state(stream, BT_BAP_STREAM_STATE_QOS); - break; case BT_ASCS_ASE_STATE_RELEASING: bap_stream_io_detach(stream); stream_set_state(stream, BT_BAP_STREAM_STATE_IDLE); -- 2.39.2