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

Commit c78567ea authored by Zach Johnson's avatar Zach Johnson
Browse files

btm_process_remote_name does nothing interesting if remote name not

active

this function call does nothing

Bug: 159815595
Tag: #refactor
Test: compile & verify basic functions working
Change-Id: I9c717be170860977d53436ee22757f2bc3c4d64b
parent b3c9912c
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -1528,11 +1528,10 @@ void btm_inq_rmt_name_failed_cancelled(void) {
  BTM_TRACE_ERROR("btm_inq_rmt_name_failed_cancelled()  remname_active=%d",
                  btm_cb.btm_inq_vars.remname_active);

  if (btm_cb.btm_inq_vars.remname_active)
  if (btm_cb.btm_inq_vars.remname_active) {
    btm_process_remote_name(&btm_cb.btm_inq_vars.remname_bda, NULL, 0,
                            HCI_ERR_UNSPECIFIED);
  else
    btm_process_remote_name(NULL, NULL, 0, HCI_ERR_UNSPECIFIED);
  }

  btm_sec_rmt_name_request_complete(NULL, NULL, HCI_ERR_UNSPECIFIED);
}