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

Commit f3fe2675 authored by Martin Brabham's avatar Martin Brabham
Browse files

Directly use parameter to create p_dev_rec

Bug: 162984360
Tag: #refactor
Test: compiles and devices pair and work
Change-Id: I9a777cd7a2d12c97640e22b64f77c534d4c86e28
Merged-In: I9a777cd7a2d12c97640e22b64f77c534d4c86e28
parent 2c5ce1d4
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -2731,9 +2731,10 @@ void btm_sec_rmt_host_support_feat_evt(uint8_t* p) {
 *
 ******************************************************************************/
void btm_io_capabilities_req(const RawAddress& p) {
  tBTM_SEC_DEV_REC* p_dev_rec = btm_find_or_alloc_dev(p);

  tBTM_SP_IO_REQ evt_data;
  uint8_t err_code = 0;
  tBTM_SEC_DEV_REC* p_dev_rec;
  bool is_orig = true;
  uint8_t callback_rc = BTM_SUCCESS;

@@ -2749,8 +2750,6 @@ void btm_io_capabilities_req(const RawAddress& p) {
  BTM_TRACE_EVENT("%s: State: %s", __func__,
                  btm_pair_state_descr(btm_cb.pairing_state));

  p_dev_rec = btm_find_or_alloc_dev(evt_data.bd_addr);

  BTM_TRACE_DEBUG("%s:Security mode: %d, Num Read Remote Feat pages: %d",
                  __func__, btm_cb.security_mode, p_dev_rec->num_read_pages);