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

Commit 9e3f79a5 authored by Manu Viswanadhan's avatar Manu Viswanadhan Committed by android-build-merger
Browse files

Merge "btif: Remove unused synchronization in event_cleanup_stack"

am: 8fcfe0c5

Change-Id: I05c6256acc7d5da4cede7bd20fcc0b8e4ff11837
parents 71f8f618 8fcfe0c5
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -194,8 +194,6 @@ static void ensure_stack_is_not_running(void) {

// Synchronous function to clean up the stack
static void event_clean_up_stack(void* context) {
  future_t* local_hack_future;

  if (!stack_is_initialized) {
    LOG_INFO(LOG_TAG, "%s found the stack already in a clean state", __func__);
    goto cleanup;
@@ -204,8 +202,6 @@ static void event_clean_up_stack(void* context) {
  ensure_stack_is_not_running();

  LOG_INFO(LOG_TAG, "%s is cleaning up the stack", __func__);
  local_hack_future = future_new();
  hack_future = local_hack_future;
  stack_is_initialized = false;

  btif_cleanup_bluetooth();