[ncp] remove dead code in SPINEL_PROP_STREAM_NET_INSECURE set handler (#4463)

This commit is contained in:
Jonathan Hui
2020-01-12 22:09:01 -08:00
committed by GitHub
parent 3ea4c91b75
commit 4b0822fa8e
-10
View File
@@ -2915,17 +2915,7 @@ template <> otError NcpBase::HandlePropertySet<SPINEL_PROP_STREAM_NET_INSECURE>(
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)
{
mInboundInsecureIpFrameCounter++;