Merge "wifi(implementation): Remove unnecessary local variable" into oc-mr1-dev
am: 12d6df4a2a
Change-Id: Id89af05cf256af7b4a6958c502a7f8a683901084
This commit is contained in:
commit
d956fb10e5
1 changed files with 1 additions and 2 deletions
|
@ -185,9 +185,8 @@ WifiStatus Wifi::initializeLegacyHal() {
|
|||
WifiStatus Wifi::stopLegacyHalAndDeinitializeModeController(
|
||||
/* NONNULL */ std::unique_lock<std::recursive_mutex>* lock) {
|
||||
run_state_ = RunState::STOPPING;
|
||||
const auto on_complete_callback_ = [&]() { run_state_ = RunState::STOPPED; };
|
||||
legacy_hal::wifi_error legacy_status =
|
||||
legacy_hal_->stop(lock, on_complete_callback_);
|
||||
legacy_hal_->stop(lock, [&]() { run_state_ = RunState::STOPPED; });
|
||||
if (legacy_status != legacy_hal::WIFI_SUCCESS) {
|
||||
LOG(ERROR) << "Failed to stop legacy HAL: "
|
||||
<< legacyErrorToString(legacy_status);
|
||||
|
|
Loading…
Reference in a new issue