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

Commit 2b2ae4e6 authored by Chris Manton's avatar Chris Manton
Browse files

1/10 Unfriend bta::dm::tBTA_DM_PEER_DEVICE

Co-locate stack variable with usage
Bug: 296647114
Test: m .

Change-Id: I55e808c07a711d3ce66b41027214294435a736f4
parent 74db9bf9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1009,7 +1009,6 @@ void bta_dm_pm_btm_status(const RawAddress& bd_addr, tBTM_PM_STATUS status,
    return;
  }

  tBTA_DM_DEV_INFO info = p_dev->Info();
  /* check new mode */
  switch (status) {
    case BTM_PM_STS_ACTIVE:
@@ -1071,6 +1070,7 @@ void bta_dm_pm_btm_status(const RawAddress& bd_addr, tBTM_PM_STATUS status,
         */
        bta_dm_pm_stop_timer(bd_addr);
      } else {
        tBTA_DM_DEV_INFO info = p_dev->Info();
        p_dev->info &=
            ~(BTA_DM_DI_SET_SNIFF | BTA_DM_DI_INT_SNIFF | BTA_DM_DI_ACP_SNIFF);
        if (info & BTA_DM_DI_SET_SNIFF)