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

Commit 1ceef27c authored by Zach Johnson's avatar Zach Johnson
Browse files

BTIF_dm_on_hw_error doesn't need to switch context

Bug: 159815595
Tag: #refactor
Test: compile & verify basic functions working
Change-Id: Id794b42e77af167f8ca34c0f2c1492bde59a0774
parent 1ce2ac90
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1619,7 +1619,7 @@ void BTIF_dm_report_inquiry_status_change(uint8_t status) {
  }
}

static void on_hw_error() {
void BTIF_dm_on_hw_error() {
  BTIF_TRACE_ERROR("Received H/W Error. ");
  /* Flush storage data */
  btif_config_flush();
@@ -1628,7 +1628,6 @@ static void on_hw_error() {
  kill(getpid(), SIGKILL);
}

void BTIF_dm_on_hw_error() { do_in_jni_thread(base::Bind(on_hw_error)); }
/*******************************************************************************
 *
 * Function         btif_dm_upstreams_cback