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

Commit 1e3ddfac authored by Martin Brabham's avatar Martin Brabham
Browse files

Consolidate evt data initialization

Bug: 162984360
Tag: #refactor
Test: compiles and devices pair and work
Change-Id: I73d8e2655f84f47d7c8e2623cf600449735df506
parent 7db2e26f
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -2744,10 +2744,6 @@ void btm_io_capabilities_req(const RawAddress& p) {
  }

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

  evt_data.bd_addr = p;

  /* setup the default response according to compile options */
@@ -2757,6 +2753,10 @@ void btm_io_capabilities_req(const RawAddress& p) {
  evt_data.oob_data = BTM_OOB_NONE;
  evt_data.auth_req = BTM_DEFAULT_AUTH_REQ;

  uint8_t err_code = 0;
  bool is_orig = true;
  uint8_t callback_rc = BTM_SUCCESS;

  BTM_TRACE_EVENT("%s: State: %s", __func__,
                  btm_pair_state_descr(btm_cb.pairing_state));