Loading system/gd/hal/hci_hal_android_hidl.cc +9 −11 Original line number Diff line number Diff line Loading @@ -228,9 +228,8 @@ class HciHalHidl : public HciHal { ASSERT(bt_hci_ != nullptr); auto death_link = bt_hci_->linkToDeath(hci_death_recipient_, 0); ASSERT_LOG(death_link.isOk(), "Unable to set the death recipient for the Bluetooth HAL"); // Block allows allocation of a variable that might be bypassed by goto. { callbacks_ = new InternalHciCallbacks(btaa_logger_, btsnoop_logger_); if (bt_hci_1_1_ != nullptr) { bt_hci_1_1_->initialize_1_1(callbacks_); } else { Loading @@ -240,7 +239,6 @@ class HciHalHidl : public HciHal { // Don't timeout here, time out at a higher layer callbacks_->GetInitPromise()->get_future().wait(); } } void Stop() override { ASSERT(bt_hci_ != nullptr); Loading Loading
system/gd/hal/hci_hal_android_hidl.cc +9 −11 Original line number Diff line number Diff line Loading @@ -228,9 +228,8 @@ class HciHalHidl : public HciHal { ASSERT(bt_hci_ != nullptr); auto death_link = bt_hci_->linkToDeath(hci_death_recipient_, 0); ASSERT_LOG(death_link.isOk(), "Unable to set the death recipient for the Bluetooth HAL"); // Block allows allocation of a variable that might be bypassed by goto. { callbacks_ = new InternalHciCallbacks(btaa_logger_, btsnoop_logger_); if (bt_hci_1_1_ != nullptr) { bt_hci_1_1_->initialize_1_1(callbacks_); } else { Loading @@ -240,7 +239,6 @@ class HciHalHidl : public HciHal { // Don't timeout here, time out at a higher layer callbacks_->GetInitPromise()->get_future().wait(); } } void Stop() override { ASSERT(bt_hci_ != nullptr); Loading