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

Commit 6b2189eb authored by Zach Johnson's avatar Zach Johnson
Browse files

Remove unused parameter from btu_task_start_up

Bug: 159815595
Tag: #refactor
Test: compile & verify basic functions working
Change-Id: I338026a9d726f6d7f30c585d8b023f541bc5f798
parent 0a4764c0
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -33,7 +33,7 @@ using bluetooth::common::MessageLoopThread;

MessageLoopThread bt_startup_thread("bt_startup_thread");

void btu_task_start_up(void* context);
void btu_task_start_up();
void btu_task_shut_down();

/*****************************************************************************
@@ -103,8 +103,7 @@ void BTU_StartUp() {
    BTU_ShutDown();
    return;
  }
  if (!bt_startup_thread.DoInThread(FROM_HERE,
                                    base::Bind(btu_task_start_up, nullptr))) {
  if (!bt_startup_thread.DoInThread(FROM_HERE, base::Bind(btu_task_start_up))) {
    LOG(ERROR) << __func__ << ": Unable to continue start-up on "
               << bt_startup_thread;
    BTU_ShutDown();
+1 −1
Original line number Diff line number Diff line
@@ -108,7 +108,7 @@ bt_status_t do_in_main_thread_delayed(const base::Location& from_here,
  return BT_STATUS_SUCCESS;
}

void btu_task_start_up(UNUSED_ATTR void* context) {
void btu_task_start_up() {
  LOG(INFO) << "Bluetooth chip preload is complete";

  /* Initialize the mandatory core stack control blocks
+2 −2
Original line number Diff line number Diff line
@@ -60,7 +60,7 @@ class TimeoutHelper {
TimeoutHelper helper;

// External function definitions
void btu_task_start_up(void* context);
void btu_task_start_up();
void btu_task_shut_down();

/* Below are methods and variables that must be implemented if we don't want to
@@ -95,7 +95,7 @@ class BtuMessageLoopTest : public testing::Test {
    bt_startup_thread.StartUp();
    // btu_task_start_up calls btif_transfer_context to let the stack know
    // start up is finished
    btu_task_start_up(nullptr);
    btu_task_start_up();
    helper.wait(5, base::Bind(&BtuMessageLoopTest::Fail, base::Unretained(this),
                              "BTU startup timed out"));
  }