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

Commit 2372e559 authored by Wang Fei's avatar Wang Fei
Browse files

Delete unused hci event buffer in hci_layer.cc

There is a local variable which copied the hci event
buffer but no one handle it. So we need to delete it
to decrease the CPU loading.

Test: Restart bluetooth and watch if it running OK

Change-Id: Ia8a3e680e2ed7c4051a295544dcf5eca1b195731
parent 3f3280f4
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -335,7 +335,6 @@ void OnTransmitPacketCommandComplete(command_complete_cb complete_callback,
                                     bluetooth::hci::CommandCompleteView view) {
  LOG_DEBUG("Received cmd complete for %s",
            bluetooth::hci::OpCodeText(view.GetCommandOpCode()).c_str());
  std::vector<uint8_t> data(view.begin(), view.end());
  BT_HDR* response = WrapPacketAndCopy(MSG_HC_TO_STACK_HCI_EVT, &view);
  complete_callback(response, context);
}