From 7a84a319d5a99e02664cf8a3b0aa3e97e932747e Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Wed, 18 Dec 2024 17:28:13 +0100 Subject: [PATCH] hci: remove redundant check --- src/hci.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/hci.c b/src/hci.c index 8fbfaa631..3f7ab63fd 100644 --- a/src/hci.c +++ b/src/hci.c @@ -3285,10 +3285,8 @@ static void handle_command_status_event(uint8_t * packet, uint16_t size) { // on error if (status != ERROR_CODE_SUCCESS){ #ifdef ENABLE_LE_CENTRAL - if (hci_is_le_connection_type(addr_type)){ - hci_stack->le_connecting_state = LE_CONNECTING_IDLE; - hci_stack->le_connecting_request = LE_CONNECTING_IDLE; - } + hci_stack->le_connecting_state = LE_CONNECTING_IDLE; + hci_stack->le_connecting_request = LE_CONNECTING_IDLE; #endif // error => outgoing connection failed hci_connection_t * conn = hci_connection_for_bd_addr_and_type(addr, addr_type);