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

Commit 5c7828c9 authored by Zach Johnson's avatar Zach Johnson
Browse files

bta_dm_disc_result only happens in the discovery active state

instead of sending message, call directly

Bug: 159815595
Tag: #refactor
Test: compile & verify basic functions working
Change-Id: Ia1c0435876a06279fae3328f14313677016ac44e
parent c5f935be
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -1247,11 +1247,7 @@ void bta_dm_disc_result(tBTA_DM_MSG* p_data) {
    bta_dm_search_cb.p_search_cback(BTA_DM_DISC_RES_EVT,
                                    &p_data->disc_result.result);

  tBTA_DM_MSG* p_msg = (tBTA_DM_MSG*)osi_malloc(sizeof(tBTA_DM_MSG));

  /* send a message to change state */
  p_msg->hdr.event = BTA_DM_SEARCH_CMPL_EVT;
  bta_sys_sendmsg(p_msg);
  bta_dm_search_cmpl();
}

/*******************************************************************************