diff --git a/src/lib/spinel/spinel_driver.cpp b/src/lib/spinel/spinel_driver.cpp index 0f49262cc..6c7268af1 100644 --- a/src/lib/spinel/spinel_driver.cpp +++ b/src/lib/spinel/spinel_driver.cpp @@ -129,8 +129,7 @@ void SpinelDriver::ResetCoprocessor(bool aSoftwareReset) mWaitingKey = SPINEL_PROP_LAST_STATUS; - if (aSoftwareReset && (SendReset(SPINEL_RESET_STACK) == OT_ERROR_NONE) && (!mIsCoprocessorReady) && - (WaitResponse() == OT_ERROR_NONE)) + if (aSoftwareReset && (SendReset(SPINEL_RESET_STACK) == OT_ERROR_NONE) && (WaitResponse() == OT_ERROR_NONE)) { VerifyOrExit(mIsCoprocessorReady, resetDone = false); LogCrit("Software reset co-processor successfully");