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

Commit 199db356 authored by Zach Johnson's avatar Zach Johnson
Browse files

bt_jni_msg_ready only ever handles 1 event

Bug: 159815595
Tag: #refactor
Test: compile & verify basic functions working
Change-Id: Ia1e4b44945d6576ce448a18f6a6101397ba8d79c
parent 49dd60d7
Loading
Loading
Loading
Loading
+1 −11
Original line number Diff line number Diff line
@@ -241,17 +241,7 @@ void btif_init_ok() {
 ******************************************************************************/
static void bt_jni_msg_ready(void* context) {
  BT_HDR* p_msg = (BT_HDR*)context;

  BTIF_TRACE_VERBOSE("btif task fetched event %x", p_msg->event);

  switch (p_msg->event) {
    case BT_EVT_CONTEXT_SWITCH_EVT:
  btif_context_switched(p_msg);
      break;
    default:
      BTIF_TRACE_ERROR("unhandled btif event (%d)", p_msg->event & BT_EVT_MASK);
      break;
  }
  osi_free(p_msg);
}