[ncp] remove unused code (#6288)

For the case when otInstanceReset returns during pseudo reset action
setting here SPINEL_STATUS_RESET_SOFTWARE is useless as line below
the current sNcpInstance is cleared. The new status never gets
a chance to be transmitted to the host.
This commit is contained in:
Łukasz Maciejończyk
2021-03-16 12:53:27 -07:00
committed by GitHub
parent 16ebac8a17
commit 12d5f793e7
-8
View File
@@ -1214,14 +1214,6 @@ otError NcpBase::CommandHandler_RESET(uint8_t aHeader)
IgnoreError(otIp6SetEnabled(mInstance, false));
#endif
error = WriteLastStatusFrame(SPINEL_HEADER_FLAG | SPINEL_HEADER_IID_0, SPINEL_STATUS_RESET_SOFTWARE);
if (error != OT_ERROR_NONE)
{
mChangedPropsSet.AddLastStatus(SPINEL_STATUS_RESET_UNKNOWN);
mUpdateChangedPropsTask.Post();
}
sNcpInstance = nullptr;
return error;