Skip to content

Commit 1ff7b49

Browse files
MariuszSkamracarlescufi
authored andcommitted
Bluetooth: audio: ascs: Remove redundant check
This removes redundant state check that is covered below. Signed-off-by: Mariusz Skamra <[email protected]>
1 parent ade1a44 commit 1ff7b49

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

subsys/bluetooth/audio/ascs.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -892,12 +892,6 @@ static void ascs_ep_iso_disconnected(struct bt_bap_ep *ep, uint8_t reason)
892892

893893
LOG_DBG("stream %p ep %p reason 0x%02x", stream, stream->ep, reason);
894894

895-
if (ep->status.state == BT_BAP_EP_STATE_ENABLING &&
896-
reason == BT_HCI_ERR_CONN_FAIL_TO_ESTAB) {
897-
LOG_DBG("Waiting for retry");
898-
return;
899-
}
900-
901895
/* Cancel ASE disconnect work if pending */
902896
(void)k_work_cancel_delayable(&ase->disconnect_work);
903897
ep->reason = reason;

0 commit comments

Comments
 (0)