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

Commit 66bb2df6 authored by Chris Manton's avatar Chris Manton
Browse files

legacy: Combine decl/def stack/acl/btm_pm::btm_pm_proc_mode_change

Bug: 163134718
Tag: #refactor
Test: gd/cert/run

Change-Id: Iad9a7f72b9b03a28206bef06cc739589da90e4d4
parent 8dfee78f
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -711,7 +711,6 @@ void btm_pm_proc_cmd_status(tHCI_STATUS status) {
void btm_pm_proc_mode_change(tHCI_STATUS hci_status, uint16_t hci_handle,
                             tHCI_MODE hci_mode, uint16_t interval) {
  tBTM_PM_STATUS mode = static_cast<tBTM_PM_STATUS>(hci_mode);
  tBTM_PM_STATE old_state;

  /* update control block */
  if (pm_mode_db.count(hci_handle) == 0) {
@@ -720,7 +719,7 @@ void btm_pm_proc_mode_change(tHCI_STATUS hci_status, uint16_t hci_handle,
  }
  tBTM_PM_MCB* p_cb = &pm_mode_db[hci_handle];

  old_state = p_cb->state;
  const tBTM_PM_STATE old_state = p_cb->state;
  p_cb->state = mode;
  p_cb->interval = interval;