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

Commit 2a510cb3 authored by Hansong Zhang's avatar Hansong Zhang
Browse files

Remove useless line

auth_req is either BTM_AUTH_AP_NO (2) or BTM_AUTH_AP_YES (3).
BTM_AUTH_DD_BOND is 2.  Useless or.

Bug: 163134718
Tag: #refactor
Test: compile & verify basic functions working
Change-Id: If34b501892d3bb2b4186710c5a64f4193cb939c8
parent 9ada2d8b
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -4340,9 +4340,6 @@ static void btm_sec_pairing_timeout(UNUSED_ATTR void* data) {
      break;

    case BTM_PAIR_STATE_WAIT_LOCAL_IOCAPS:
      if (btm_cb.pairing_flags & BTM_PAIR_FLAGS_WE_STARTED_DD)
        auth_req |= BTM_AUTH_DD_BOND;

      btsnd_hcic_io_cap_req_reply(p_cb->pairing_bda, btm_cb.devcb.loc_io_caps,
                                  BTM_OOB_NONE, auth_req);
      btm_sec_change_pairing_state(BTM_PAIR_STATE_IDLE);