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

Commit 8fcfe0c5 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "btif: Remove unused synchronization in event_cleanup_stack"

parents daa0f803 394a4f6a
Loading
Loading
Loading
Loading
+0 −4
Original line number Original line Diff line number Diff line
@@ -194,8 +194,6 @@ static void ensure_stack_is_not_running(void) {


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

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


  LOG_INFO(LOG_TAG, "%s is cleaning up the stack", __func__);
  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;
  stack_is_initialized = false;


  btif_cleanup_bluetooth();
  btif_cleanup_bluetooth();