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

Commit 44c5de37 authored by Myles Watson's avatar Myles Watson
Browse files

ClassicSecurity: Remove extra Event conversion

Bug: 152321387
Test: WITH_TIDY=1 mma
Change-Id: Ic02e63d5b74a4526a619fdf9a4fb13b6c6114c07
parent f964df08
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -167,11 +167,8 @@ void SecurityManagerImpl::HandleEvent(T packet) {
  if (entry == pairing_handler_map_.end()) {
    auto bd_addr = packet.GetBdAddr();
    auto event_code = packet.GetEventCode();
    auto event = hci::EventPacketView::Create(std::move(packet));
    ASSERT_LOG(event.IsValid(), "Received invalid packet");

    const hci::EventCode code = event.GetEventCode();
    if (code != hci::EventCode::LINK_KEY_REQUEST) {
    if (event_code != hci::EventCode::LINK_KEY_REQUEST) {
      LOG_ERROR("No classic pairing handler for device '%s' ready for command %s ", bd_addr.ToString().c_str(),
                hci::EventCodeText(event_code).c_str());
      return;