mirror of
https://github.com/espressif/openthread.git
synced 2026-07-30 15:47:46 +00:00
[ncp] remove dead code in SPINEL_PROP_STREAM_NET_INSECURE set handler (#4463)
This commit is contained in:
@@ -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++;
|
||||
|
||||
Reference in New Issue
Block a user