Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 442e029b authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "btm_io_capabilities_rsp: remove unnecesary null check" into main

parents 8ef4f496 0db4c184
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -2632,11 +2632,8 @@ void btm_io_capabilities_rsp(const tBTM_SP_IO_RSP evt_data) {
      com::android::bluetooth::flags::key_missing_classic_device()) {
    log::warn("Incoming bond request, but {} is already bonded (notifying user)", evt_data.bd_addr);
    bta_dm_remote_key_missing(evt_data.bd_addr);

    if (p_dev_rec != NULL) {
    btm_sec_disconnect(p_dev_rec->hci_handle, HCI_ERR_AUTH_FAILURE,
                       "btm_io_capabilities_rsp for bonded device");
    }
    return;
  }