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

Commit 4911e2a0 authored by Zach Johnson's avatar Zach Johnson
Browse files

No need to transfer context in bta_energy_info_cb

Bug: 159815595
Tag: #refactor
Test: compile & verify basic functions working
Change-Id: I743eb4848bf9f88760a9ea4adaafe45d71d8df4c
parent f413bd0a
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -1948,9 +1948,7 @@ static void bta_energy_info_cb(tBTM_BLE_TX_TIME_MS tx_time,
  btif_cb.rx_time = (uint64_t)rx_time;
  btif_cb.idle_time = (uint64_t)idle_time;
  btif_cb.energy_used = (uint64_t)energy_used;
  btif_transfer_context(btif_dm_upstreams_evt, BTA_DM_ENER_INFO_READ,
                        (char*)&btif_cb, sizeof(btif_activity_energy_info_cb_t),
                        NULL);
  btif_dm_upstreams_evt(BTA_DM_ENER_INFO_READ, (char*)&btif_cb);
}

/* Scan filter param config event */