[ncp] remove dead code in SPINEL_PROP_STREAM_NET set handler (#4475)

This commit is contained in:
Jonathan Hui
2020-01-14 22:10:38 -08:00
committed by GitHub
parent 7d92134da2
commit 73ff9439e6
-10
View File
@@ -1959,18 +1959,8 @@ template <> otError NcpBase::HandlePropertySet<SPINEL_PROP_STREAM_NET>(void)
error = otIp6Send(mInstance, message);
// `otIp6Send()` takes ownership of `message` (in both success or
// failure cases). `message` is set to NULL so it is not freed at
// exit.
message = NULL;
exit:
if (message != NULL)
{
otMessageFree(message);
}
if (error == OT_ERROR_NONE)
{
mInboundSecureIpFrameCounter++;